使用下面的标记,当鼠标悬停在按钮上时,按钮文本将带下划线.我怎样才能摆脱这种行为?
是否有更好的方法将链接添加到 bootstrap 中的BTN组以避免此行为?
<a href="#">
<div class="btn-group">
<button class="btn">Text</button>
<button class="btn">Text</button>
</div>
</a>
测试的CSS行:
a:hover .btn-group { text-decoration: none }
a .btn-group:hover { text-decoration: none }
a:hover .btn-group .btn { text-decoration: none }
a .btn-group .btn:hover { text-decoration: none }
任何额外的!重要信息也不起作用(由baptme建议).