如何使输入按钮在所有浏览器中看起来完全相同? [英] How can I make input buttons look exactly the same in all browsers?
本文介绍了如何使输入按钮在所有浏览器中看起来完全相同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将这样的表单按钮设为样式:
I'm styling my form buttons like this:
/* CSS RESET */
* { margin: 0; padding: 0; }
...
form input.button {
padding: 2px;
}
...
<input class="button" name="submit" type="submit" value="Login" />
但它们看起来像这样:
最简单
推荐答案
什么是最简单的方式在所有浏览器中完全相同?
What is the easiest way to make buttons look exactly the same in all browsers?
使用图片。
我不认为你会得到完全的交叉浏览器。你可以接近CSS,但你会花费一些时间和沮丧(一个CSS重置可以使这更容易一些)。
I don't think you will get it exactly the same cross browser otherwise. You could get close with CSS, but you will be spending a bit of time and frustration (a CSS reset could make this a bit easier).
这篇关于如何使输入按钮在所有浏览器中看起来完全相同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文