Html
    Css
    Js

    
                        
.container {
	border:1px solid #DDDDDD;
	padding:10px;
	width:300px;
}
.clear:after {
	display:block;
	content:"";
	clear:both;
}
ul.tip {
	list-style:none;
	padding:0;
}
ul.tip li {
	width:150px;
	float:left;
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
	cursor:pointer;
}
ul.tip li.redC {
	background-color:red;
	color:#FFF;
}
ul.tip li.grayC {
	background-color:#999;
	color:#fff;
}

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

js列表背景自循环

更新时间:2019-10-31 00:49:20

0