html – 当Firefox中的按钮处于活动状态时,如何防止按钮文本移动?

html – 当Firefox中的按钮处于活动状态时,如何防止按钮文本移动?,第1张

概述样品: <button>Button</button>button { border: medium none; margin-top: 17px; width: 224px; height: 40px; background: none repeat scroll 0% 0% #7BA6BB; color: #FFF; outline 样品:
<button>button</button>button {    border: medium none;    margin-top: 17px;    wIDth: 224px;    height: 40px;    background: none repeat scroll 0% 0% #7BA6BB;    color: #FFF;    outline: medium none;    cursor: pointer;}

http://codepen.io/anon/pen/ByaLZN

浏览器:Mozilla firefox(最新版本)

单击按钮(激活)时,按钮文本向右移动.怎么预防呢?

解决方法 http://jsfiddle.net/reg8f6eo/作为解决方案之一:添加填充:0表示按钮:活动

或者你可以在你的按钮中添加span(或者你喜欢的其他标签),例如http://jsfiddle.net/reg8f6eo/1/

总结

以上是内存溢出为你收集整理的html – 当Firefox中的按钮处于活动状态时,如何防止按钮文本移动?全部内容,希望文章能够帮你解决html – 当Firefox中的按钮处于活动状态时,如何防止按钮文本移动?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1134619.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存