js如何实现每隔5秒li的class循环至下一个li
<style>*{padding:0;margin:0;}ul,ol{list-style:none;}.platform{width:1000px;margin:20p...
<style>
* { padding:0; margin:0;}
ul,ol { list-style:none;}
.platform{ width:1000px; margin:20px auto; text-align:center;}
.platform ul li { display:inline-block; margin:0 20px;width:150px; height:150px; border-radius:999em; border:2px solid #eee; background:#f8f8f8; text-align:center; line-height:150px; font-size:20px;}
.platform ul li.active{ background:#fff;}
</style>
<div class="platform">
<ul>
<li class="active">服务</li>
<li>标准</li>
<li>循环</li>
<li>间隔</li>
</ul>
</div> 展开
* { padding:0; margin:0;}
ul,ol { list-style:none;}
.platform{ width:1000px; margin:20px auto; text-align:center;}
.platform ul li { display:inline-block; margin:0 20px;width:150px; height:150px; border-radius:999em; border:2px solid #eee; background:#f8f8f8; text-align:center; line-height:150px; font-size:20px;}
.platform ul li.active{ background:#fff;}
</style>
<div class="platform">
<ul>
<li class="active">服务</li>
<li>标准</li>
<li>循环</li>
<li>间隔</li>
</ul>
</div> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询