webapp
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dd,dl,dt,li,ol,ul,fieldset,form,label,legend {
margin: 0;
padding: 0;
border: 0;
outline: 0
}
img {
display: block;
width: 100%;
height: 100%
}
p {
margin-bottom: 0
}
body,a,input,button {
font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
font-size: 14px;
outline: none;
color: #666;
text-decoration: none
}
ul {
list-style-type: none;
padding: 0;
margin: 0
}
a {
color: #428bca
}
a:hover {
text-decoration: none
}
.flt {
float: left
}
.frt {
float: right
}
.clr {
overflow: hidden
}
.mt5 {
margin-top: 5px
}
.mt10 {
margin-top: 10px
}
.mt15 {
margin-top: 15px
}
.mt20 {
margin-top: 20px
}
.mt5-i {
margin-top: 5px ! important
}
.mt10-i {
margin-top: 10px ! important
}
.mt15-i {
margin-top: 15px ! important
}
.mt20-i {
margin-top: 20px ! important
}
.mb5 {
margin-bottom: 5px
}
.mb10 {
margin-bottom: 10px
}
.mb15 {
margin-bottom: 15px
}
.mb20 {
margin-bottom: 20px
}
.mb5-i {
margin-bottom: 5px ! important
}
.mb10-i {
margin-bottom: 10px ! important
}
.mb15-i {
margin-bottom: 15px ! important
}
.mb20-i {
margin-bottom: 20px ! important
}
.ml5 {
margin-left: 5px
}
.ml10 {
margin-left: 10px
}
.ml15 {
margin-left: 15px
}
.ml20 {
margin-left: 20px
}
.ml5-i {
margin-left: 5px ! important
}
.ml10-i {
margin-left: 10px ! important
}
.ml15-i {
margin-left: 15px ! important
}
.ml20-i {
margin-left: 20px ! important
}
.mr5 {
margin-right: 5px
}
.mr10 {
margin-right: 10px
}
.mr15 {
margin-right: 15px
}
.mr20 {
margin-right: 20px
}
.mr5-i {
margin-right: 5px ! important
}
.mr10-i {
margin-right: 10px ! important
}
.mr15-i {
margin-right: 15px ! important
}
.mr20-i {
margin-right: 20px ! important
}
.pt5 {
padding-top: 5px
}
.pt10 {
padding-top: 10px
}
.pt15 {
padding-top: 15px
}
.pt20 {
padding-top: 20px
}
.pt5-i {
padding-top: 5px ! important
}
.pt10-i {
padding-top: 10px ! important
}
.pt15-i {
padding-top: 15px ! important
}
.pt20-i {
padding-top: 20px ! important
}
.pb5 {
padding-bottom: 5px
}
.pb10 {
padding-bottom: 10px
}
.pb15 {
padding-bottom: 15px
}
.pb20 {
padding-bottom: 20px
}
.pb5-i {
padding-bottom: 5px ! important
}
.pb10-i {
padding-bottom: 10px ! important
}
.pb15-i {
padding-bottom: 15px ! important
}
.pb20-i {
padding-bottom: 20px ! important
}
.pr5 {
padding-right: 5px
}
.pr10 {
padding-right: 10px
}
.pr15 {
padding-right: 15px
}
.pr20 {
padding-right: 20px
}
.pr5-i {
padding-right: 5px ! important
}
.pr10-i {
padding-right: 10px ! important
}
.pr15-i {
padding-right: 15px ! important
}
.pr20-i {
padding-right: 20px ! important
}
.pl5 {
padding-left: 5px
}
.pl10 {
padding-left: 10px
}
.pl15 {
padding-left: 15px
}
.pl20 {
padding-left: 20px
}
.pl5-i {
padding-left: 5px ! important
}
.pl10-i {
padding-left: 10px ! important
}
.pl15-i {
padding-left: 15px ! important
}
.pl20-i {
padding-left: 20px ! important
}
.block-center {
display: block;
margin-left: auto;
margin-right: auto
}
.fz12 {
font-size: 12px ! important
}
.fz14 {
font-size: 14px ! important
}
.fz16 {
font-size: 16px ! important
}
.fz18 {
font-size: 18px ! important
}
.pre {
position: relative ! important
}
.c-w {
color: #fff
}
.c-b {
color: #000
}
.c-9 {
color: #999
}
.c-6 {
color: #666
}
.c-3 {
color: #333
}
.c-w-i {
color: #fff ! important
}
.c-b-i {
color: #000 ! important
}
.c-9-i {
color: #999 ! important
}
.c-6-i {
color: #666 ! important
}
.c-3-i {
color: #333 ! important
}
.t-c {
text-align: center
}
.t-c-i {
text-align: center ! important
}
.l-c {
vertical-align: middle
}
.l-c-i {
vertical-align: middle ! important
}
.bz-bb {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box
}
.bz-cb {
box-sizing: content-box;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box
}
.bc-w {
background: #fff
}
.bc-w-i {
background: #fff ! important
}
.fw-in {
font-weight: inherit ! important
}
.fw-b {
font-weight: bold
}
.cs-p {
cursor: pointer ! important
}
.clearfix:after {
content: "";
display: block;
clear: both
}
.w1000 {
width: 1000px;
margin-left: auto;
margin-right: auto
}
.w1024 {
width: 1024px;
margin-left: auto;
margin-right: auto
}
.w900 {
width: 900px;
margin-left: auto;
margin-right: auto
}
@media (max-width:1442px) {
html {
font-size: 225px
}
}
@media (max-width:1282px) {
html {
font-size: 200px
}
}
@media (max-width:1026px) {
html {
font-size: 160px
}
}
@media (max-width:962px) {
html {
font-size: 150px
}
}
@media (max-width:952px) {
html {
font-size: 148.4375px
}
}
@media (max-width:902px) {
html {
font-size: 140.625px
}
}
@media (max-width:802px) {
html {
font-size: 125px
}
}
@media (max-width:775px) {
html {
font-size: 120.78125px
}
}
@media (max-width:770px) {
html {
font-size: 120px
}
}
@media (max-width:738px) {
html {
font-size: 115px
}
}
@media (max-width:734px) {
html {
font-size: 114.375px
}
}
@media (max-width:733px) {
html {
font-size: 114.21875px
}
}
@media (max-width:669px) {
html {
font-size: 104.21875px
}
}
@media (max-width:642px) {
html {
font-size: 100px
}
}
@media (max-width:602px) {
html {
font-size: 93.75px
}
}
@media (max-width:570px) {
html {
font-size: 88.75px
}
}
@media (max-width:535px) {
html {
font-size: 83.28125px
}
}
@media (max-width:437px) {
html {
font-size: 67.96875px
}
}
@media (max-width:416px) {
html {
font-size: 64.6875px
}
}
@media (max-width:413px) {
html {
font-size: 64.21875px
}
}
@media (max-width:386px) {
html {
font-size: 60px
}
}
@media (max-width:377px) {
html {
font-size: 58.59375px
}
}
@media (max-width:362px) {
html {
font-size: 56.25px
}
}
@media (max-width:322px) {
html {
font-size: 50px
}
}
公式: 屏幕宽度 / 设计稿的宽度 * 自定义值(1rem = 100px) = 1rem(即根值)
例如:320 / 640 * 100 = 50px
640 / 640 * 100 = 100px