赞
踩
tip:
1.css默认手机样式,平板在此基础上修改数值;
2.以500px作为两者区分
h3{
height: 4.96rem;
padding-top: 1.51rem;
font-size: 1rem;
font-weight: 500;
text-align: center;
}
@media screen and (orientation: portrait) and (min-device-width: 500px){
h3{
padding-top: 1.28rem;
height: 3.38rem;
font-size: .75rem;
}
}
@media screen and (orientation: landscape) and (min-device-width: 500px){
h3{
padding-top: .45rem;
height: 1.93rem;
font-size: .6rem;
}
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。