html css使完整列表可点击

时间:2016-05-14 06:35:00

标签: html html-lists

我有html

li.count-instagram {
    background-color: #674538 !important;
    padding: 5px 0 !important;
    display:block !important;
}
<li class="count-instagram"><a class="icon" href="#" target="_blank" rel="nofollow">LINK</a><span class="items"><span class="count" style="color: #ffffff !important;">2665</span><span class="label" style="color: #ffffff !important;">followers</span></span></li>

我需要全部点击这个列表,请帮忙。感谢

2 个答案:

答案 0 :(得分:0)

li.count-instagram {
  background-color: #674538 !important;
}
.count-instagram a{
  display:block !important;
  padding: 5px 0 !important;
}
<li class="count-instagram"><a class="icon" href="#" target="_blank" rel="nofollow">LINK<span class="items"><span class="count" style="color: #ffffff !important;">2665</span><span class="label" style="color: #ffffff !important;">followers</span></span></a></li>

答案 1 :(得分:0)

只需使用下面指定的代码,您的问题就会被排序。

<li class="count-instagram">
<a class="icon" href="#" target="_blank" rel="nofollow">
    <div class="items">
        <span class="count" style="color: #ffffff !important;">2665</span>
        <span class="label" style="color: #ffffff !important;">followers</span>
    </div>
</a>

相关问题