如何使Firefox按钮看起来像Chrome按钮(边框,边框半径,填充,边距..)

时间:2015-12-03 08:04:09

标签: css google-chrome firefox

firefox: enter image description here google-chrome: enter image description here

.stdbutton{
    width:100px;
    height: 20px;
}
button::-moz-focus-inner {
         padding: 0 !important;
         border: 0 none !important;

     }

如何让它们看起来一样? border-radius:0px;无效。

2 个答案:

答案 0 :(得分:2)

每个浏览器以不同方式呈现name[]。没有单一的CSS属性可以标准化所有浏览器中按钮的视觉外观。

如果您想要标准化外观,请使用JS插件来完成此操作,或者通过设置

删除默认浏览器样式

<button>

按钮上的

,然后根据您希望它的显示方式设置样式。

答案 1 :(得分:1)

你可以在你的按钮上使用它:

-webkit-appearance:     none;
-moz-appearance:        none;
-ms-appearance:         none;
-o-appearance:          none;
appearance:             none;

然后将它们打造在一起

相关问题