Home > Article > Web Front-end > css之浏览器初始化方案_html/css_WEB-ITnose
HTML, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
pre, form, fieldset, table, th, td {
border:none;
font-family:"微软雅黑","黑体","宋体";
font-size:14px;
margin:0px;
padding:0px;
}
html,body{
height: 100%;
width: 100%;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
a{
text-decoration:none;
}
a:link{
color:#fff;
}
a:visited{
color:#fff;
}
a:hover{
color:#fff;
}
a:active{
color:#fff;
}
input::-ms-clear{
display:none;
}
input::-ms-reveal{
display:none;
}
input{
-webkit-appearance: none;
margin: 0;
outline: none;
padding: 0;
}
input::-webkit-input-placeholder{
color: #ccc;
}
input::-ms-input-placeholder{
color: #ccc;
}
input::-moz-placeholder{
color: #ccc;
}
input[type=submit],input[type=button]{
cursor: pointer;
}
button[disabled], input[disabled] {
cursor: default;
}
img{
border:none;
}
ul,ol,li{
list-style-type:none;
}
/*公共方法*/
.clear{
clear: both;
}
.clearleft{
clear: left;
}
.clearright{
clear: right;
}
.floatleft{
float: left;
}
.floatright{
float: right;
}
.cursor{
cursor: pointer;
}
/*背景及色值表*/
.bg000{
background: #000;
}
.color000{
color: #000;
}
font-familiy部分可以用一下集中方式表示
1). 中文表示方式
font-family: "微软雅黑", "黑体", "宋体";
2). 英文表示方式
font-family: "Microsoft YaHei", SimHei, SimSun;
3). unicode码表示方式
font-family:"\5FAE\8F6F\96C5\9ED1", "\9ED1\4F53", "\5B8B\4F53";
或
font-family: "微软雅黑", "黑体", "宋体";