最佳答案
使用下面的标记,当鼠标悬停在按钮上时,按钮文本会有下划线。我怎样才能消除这种行为呢?
有没有更好的方法在引导程序中添加指向 btn-group 的链接来避免这种行为?
<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 }
任何额外的! 重要的不工作,也(建议洗礼)。