码迷,mamicode.com
首页 > Web开发 > 详细

h5页面的公共css

时间:2016-09-28 18:59:21      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:

/*reset*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
margin:0;
padding:0;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{
display:block;
}
fieldset,img{
border:0;
}
address,caption,cite,code,dfn,em,b,i,th,var,optgroup{
font-style:normal;font-weight:normal;
}
h1,h2,h3,h4,h5,h6{
font-size:100%;
font-weight: normal;
}
input,button,textarea,select,optgroup,option{
font-family:inherit;
font-size:inherit;
font-style:inherit;
font-weight:inherit;
}
textarea{
*overflow:auto;
}
code,kbd,samp,tt{
font-size:100%;
}
input,button,textarea,select{
*font-size:100%;
}
ol,ul{
list-style:none;
}
table{
border-collapse:collapse;
border-spacing:0;
}
caption,th{
text-align:left;
}
sup,sub{
font-size:100%;
vertical-align:baseline;
}
input,textarea{
-webkit-appearance:none;
}
a{
text-decoration: none;
}
/*公用*/
html,body{
width: 100%;
height: 100%;
font-size: 10px;
background: #f5f5f5;
font-family:\5FAE\8F6F\96C5\9ED1,\9ED1\4F53;
}
body{
max-width:640px;
margin:0 auto;
}
.clearfix:after{
content:".";
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix{
display:inline-block;
}
*html.clearfix{
height:1%
}
.clearfix{
display:block;
}
@media (min-width: 319px) {
html {
font-size: 62.5%;
}
}
@media (min-width: 359px) {
html {
font-size: 70.31251%;
}
}
@media (min-width: 374px) {
html {
font-size: 73.24219%;
}
}
@media (min-width: 413px) {
html {
font-size: 80.85938%;
}
}
.fl{
float: left;
}
.fr{
float: right;
}
.img-w{
width: 100%;
display: block;
}
.pa{
position: absolute;
}
.pr{
position: relative;
}
.none{
display: none;
}

h5页面的公共css

标签:

原文地址:http://www.cnblogs.com/zzwlong/p/5917346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!