在我的wordpress主题中,将样式覆盖应用于所有小工具时遇到了一些困难。我从头开始创建了这个主题,所以我完全不知道他们是怎么把这些子弹弄到那里的。
我想从列表中的项目中删除项目符号。html为:
<li id="categories-3" class="widget widget_categories"><h2 class="widgettitle">Categories</h2>
<ul>
<li class="cat-item cat-item-4"><a href="http://www.bignotch.com/category/big-notch-updates/" title="View all posts filed under Big Notch Updates">Big Notch Updates</a> (20)
</li>
<li class="cat-item cat-item-5"><a href="http://www.bignotch.com/category/music_news/" title="View all posts filed under Music News">Music News</a> (50)
</li>
<li class="cat-item cat-item-6"><a href="http://www.bignotch.com/category/ramblings/" title="View all posts filed under Ramblings">Ramblings</a> (43)
</li>
<li class="cat-item cat-item-7"><a href="http://www.bignotch.com/category/site-news/" title="View all posts filed under Site News">Site News</a> (14)
</li>
<li class="cat-item cat-item-8"><a href="http://www.bignotch.com/category/stuff-i-like/" title="View all posts filed under Stuff I Like">Stuff I Like</a> (25)
</li>
</ul>
</li>
</div>这是我到目前为止想出的似乎不起作用的代码:
li#categoryposts-3 li.cat-item {list-style: none;}在这一点上我不知道该怎么做。
发布于 2011-10-14 01:56:43
li.widget ul,
li.widget li { list-style: none; }发布于 2011-10-14 02:00:28
它必须是
li#categories-3 {background-image: none; list-style: none;}
li#categories-3 li.cat-item {background-image: none; list-style: none;}发布于 2011-10-14 01:56:05
#categoryposts-3 ul {
background-image: none; list-style: none;
}https://stackoverflow.com/questions/7758286
复制相似问题