html5外置样式表,HTML5移动端通用css详解

HTML5移动端通用css

下面是common.css内容

/*css初始化*/

/*清除内外边距*/

body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,img{

margin: 0;

padding: 0;

border: medium none;

}

h1,h2,h3,h4,h5,h6{

font-size: 100%;

}

*{

box-sizing:border-box;

}

em{

font-style: normal;

}

/*重置列表元素*/

ul,li{

list-style: none;

}

/*重置超链接元素*/

a{

text-decoration: none;

color: #333333;

}

a:hover{

text-decoration: underline;

color: #f40;

}

/*重置图片元素*/

img{

border: 0px;

vertical-align:middle;

}

/*重置表格元素*/

table{

border-collapse: collapse;

border-spacing: 0;

}

html,body{

font-size:11px;

font-family:Helvetica;

height: 100%;

color: #333;

}

@media screen and (max-width:320px){html,body {font-size:11px}}

@media screen and (min-width:321px) and (max-width:375px){html,body {font-size:12px}}

@media screen and (min-width:376px) and (max-width:414px){html,body {font-size:13px}}

@media screen and (min-width:415px) and (max-width:639px){html,body{font-size:15px}}

@media screen and (min-width:640px) and (max-width:719px){html,body{font-size:20px}}

@media screen and (min-width:720px) and (max-width:749px){html,body{font-size:22.5px}}

@media screen and (min-width:750px) and (max-width:799px){html,body{font-size:23.5px}}

@media screen and (min-width:800px){html,body{font-size:25px}}

.icon{

height: 1.5rem;

vertical-align: middle;

}

/*头部*/

.l_header {

position: relative;

height: 48px;

background: rgba(0,0,0,.1);

color: #fff;

text-align: center;

line-height: 48px;

font-size: 1.3rem;

background-color: #48C23D;

/* background: -webkit-linear-gradient(left,#5191FF, #3CA8FE,#29C1FE,#38BAFE); */

}

.l_header a img {

width: 30px;

position: absolute;

top: 9px;

left: 10px;

}

/** 无数据 */

.no-result{

display:none;

padding-top: 30px;

text-align: center;

font-size: 14px;

}

.no-result img{

width: 273px;

height: 56px;

margin-bottom: 5px;

}

.no-result text{

width: 100%;

color: #666;

float: left;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值