我使用 CSS 重置来重置一些常用的元素。代码是这样的:
html, body, div, h1, h2, h3, h4, ul, ol, li, form, input, fieldset, textarea {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
}
ul {list-style: none outside none;}
img, fieldset {border: 0;}
h1, h2, h3, h4 {font-weight: normal;}
em {font-style: italic;}
strong {font-weight: bold;}
我知道有 YUI 和 Meyer 的 reset,但我用的是这个。
现在,我遇到的问题是我无法让提交按钮再次正常显示。我当然可以从列表中删除 input
并完成它,但我想知道如何取回它,因为我将来可能需要它。
最佳答案
input[type="submit"]
{
background-color: buttonface;
border: 2px outset buttonface;
color: buttontext;
}
关于css - 重新设置表单按钮的 CSS 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2490052/