How can I make input buttons look exactly the same in all browsers?

谁都会走 提交于 2019-12-05 23:39:07

问题


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" />

But they look like this:

What is the easiest way to make buttons look exactly the same in all browsers?


回答1:


What is the easiest way to make buttons look exactly the same in all browsers?

Use an image.

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).




回答2:


Check out Formalize.



来源:https://stackoverflow.com/questions/4404708/how-can-i-make-input-buttons-look-exactly-the-same-in-all-browsers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!