这是表单字段跨浏览器测试的完整css
form, fieldset, legend {
margin:0;
padding:0;
border:none;
line-height:normal;
}
input[type="checkbox"] {
-moz-appearance: checkbox; -webkit-appearance: checkbox;
margin-left:3px; border:0;
vertical-align: middle;
top: -1px;bottom: 1px;
*overflow: hidden;}
input[type="radio"] { -moz-appearance: radio; -webkit-appearance: radio; }
input[type="search"] {
-webkit-appearance: textfield;
}
input, button, textarea, select {
font-family: inherit;
font-size: inherit;
color:#000000;
font-size: 100%; /* for IE */
padding:6px;
margin:5px 0;
border-radius:4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-khtml-border-radius: 4px;
*border-radius:4px;
-border-radius:4px;
border-radius:4px/8;
-ms-border-radius: 4px;
background:#fff;
text-transform:capitalize;
box-sizing: border-box;
-moz-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-appearance: none; -webkit-appearance: none;*/
}
input[type="submit"], input[type="reset"] {
color:#fff; font-weight:bold;
vertical-align:middle;
}
input[type="submit"]:hover, input[type="reset"]:hover {
cursor:pointer;
}
button, input[type="submit"], input[type="image"],
label > input[type="checkbox"] {
box-sizing: border-box; /* 1 */
*height: 13px; /* Removes excess padding in IE 7 */
*width: 13px;
backgorund: #fff;
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus, select:focus { outline:0;
}
input::-moz-focus-inner, button::-moz-focus-inner { border: 0; padding: 0; }
textarea {
resize:none;
overflow: auto; /* Removes default vertical scrollbar in IE 6/7/8/9 */
vertical-align: top; /* Improves readability and alignment in all browsers */
}
/* placeholder and tooltip styles */
*::-webkit-input-placeholder, /* WebKit browsers */
*:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
*::-moz-placeholder, /* Mozilla Firefox 19+ */
*:-ms-input-placeholder /* Internet Explorer 10+ */ {
color: #999;
}
[placeholder]:focus::-webkit-input-placeholder,
[placeholder]:focus:-moz-placeholder { color:transparent; }
/* mantatory field styles */
::-webkit-validation-bubble-message {
padding: 1em;
}