这是我的代码,我在wordpress网站上使用它。 “list-style:none”不起作用,它为每个li标签显示1,2 ..
<ul class="bxslider" style="width: auto; position: relative; -webkit-transition: 0s; transition: 0s; -webkit-transform: translate3d(0, -471px, 0);">
<li style="float: none; list-style: none; width: 683px; margin-bottom: 3px;" class="bx-clone">
<blockquote>We are getting calls every now and then. You have done a great job. Our business is growing. I want to place an order for a new web site with you.<br /><br />
<p style="text-align:right;margin-right:20px;">- Andrewan</p>
</blockquote>
</li>
</ul>
答案 0 :(得分:0)
尝试将list-style:none
放入ul
代码的封闭li
标记中。
编辑尝试在!important
之后添加list-style:none;
您可能拥有!important
的父css规则会覆盖您想要的规则。
答案 1 :(得分:0)
由于这是一个无序列表,因此没有机会获得1,2,3。可能是某些标签未正确关闭。现在如果您不想更改标记,以下代码可能会对您有所帮助。
.bxslider{
list-style:none;
}
答案 2 :(得分:0)
我在li {list-style-type:none!important; } 我觉得这很好。