Html
    Css
    Js

    
                        
* {
	margin:0;
	padding:0;
}
ul li {
	list-style:none;
}
.box {
	width:120px;
	height:40px;
	margin:20px auto;
	border:1px solid #ddd;
	position:relative;
	overflow:hidden;
}
.box ul {
	position:absolute;
	text-align:center;
}
.box ul li {
	width:120px;
	height:40px;
	position:relative;
	font-size:14px;
	line-height:40px;
}
.box .angle {
	position:absolute;
	width:0px;
	height:0px;
	border-left:4px solid transparent;
	border-right:4px solid transparent;
}
.box .up {
	right:0;
	top:2px;
	border-bottom:4px solid #333;
}
.box .down {
	border-top:4px solid #333;
	bottom:0px;
	right:0;
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

新闻走马灯(原创)

走马灯需要点击上下的箭头来看内容

0