使用类btn-link按钮时如何使弹出框不可见或更小?

问题描述 投票:1回答:1

我使用以下代码制作一个看起来像glyphicon的按钮:

<button type="submit" class="btn btn-link">
<span class="glyphicon glyphicon-triangle-top" style="font-size: 20px;">
</span>
</button>

当我点击按钮时,在glyphicon周围会出现一个框(下图),这对我来说是不可取的。如何让这个盒子看不见甚至变小?

enter image description here

例如,在stackoverflow中,当你点击投票时你不能存在这样的盒子(你可以马上做这个帖子;)请帮忙。提前致谢。

html button glyphicons
1个回答
1
投票

聚焦时将box-shadowoutline设置为无。

.btn-link.btn:focus {
    box-shadow: none;
    outline: none;
}
© www.soinside.com 2019 - 2024. All rights reserved.