分享一段wap框架样式

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
    <link rel="stylesheet" href="wap.css">
    <style>
       .main{
          max-width:640px;
          width:100%;
          margin:0 auto;
       }
       .main span{
          height:40px;
          background:#ddd;
       }
    </style>
</head>
<body>
  <div class="main">
     <div class="box mui-flex horizental justify-center">
       <span class="cell-2">1</span>
       <span class="cell">2</span>
     </div>
  </div>
</body>
</html>

  

a,
body { color:#051b28 } .ui-error,.ui-loading { text-align:center } blockquote,body,dd,dir,dl,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,input[type=radio],input[type=checkbox],input[type=range],listing,menu,ol,p,plaintext,pre,ul,xmp { margin:0 } button,dir,fieldset,input,input[type=radio],input[type=reset],input[type=checkbox],input[type=range],input[type=password],input[type=search],input[type=hidden],input[type=image],input[type=file],input[type=button],input[type=submit],isindex,legend,menu,ol,textarea,ul { padding:0 } h1,h2,h3,h4,h5,h6 { font-size:100%; font-weight:400 } address,cite,dfn,em,i,var { font-style:normal } a:-webkit-any-link { text-decoration:none } table { border-collapse:collapse; border-spacing:0 } a img,fieldset,iframe { border:none } ol,ul { list-style:none } button,input,select,textarea { font-family:inherit; font-weight:inherit; font-size:inherit; margin:0 } button,input,select { color:inherit } html { -webkit-text-size-adjust:none; font-size:100px } body { font:.12rem/1.5 helvetica } a { text-decoration:none } .ui-error { padding:1em 0 } @-webkit-keyframes rotate { from { -webkit-transform:rotate(0) } to { -webkit-transform:rotate(360deg) } }.ui-img-loading,.ui-loading i { -webkit-animation:rotate 1.2s linear infinite; background:url(data:image/png; base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4O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yIj8+SXvjNwAAAvpJREFUeNqsl0toU0EUhm80baJWS7Wttj6qqIuCohhdKaQouBARVCgiCOJSV1KXblUEN+rCB/haCC4UdeFG1LrwLUERFB+oC0vF+G5o1TRp/A/8A9PjzM29sQc+bu4kM//MmXPOTBKVSiWIarlcznxcBPaCZeArOA+OgbJ8mclkqo6VdAxazeaBC6CB721gD2gE+6IOkjAr9gjXg6Jq2w+2On5bAsvBj2qi4pGko3082AE2clVvwRHwxFqxz3sdFE6ALrAQvAG3wag9HecYYCfYZrlyPjjEQcQ+eIRHQB/73QC3wAk+e7kVXuFJXKm2OrCFn0873C92kYF2AKxW32XBwTDh6XbAKWvj8yXYDl7z/Rc4wygX6/b073ZGNe0TGOYKtX20Pt8Da+mhPwwsYxM9whPCVjwILjk6/WauBo7fl1TbTY/wqPakI42OgyGwiQHxChwF7+x0CCkuPWAFaFee3O1zdYJuEtGzpBaT9FvCOOhkTJwDeXuSRngNo1lWWABXwPWgdvvCFAwtmSs5O2OTmccl5mCk2htiU0CzVQVlUgMivMHTYZ0RjmJ6ctxzWcRMqznF94RE9TTPWK3B/1uLp71ZhPs9X/aPgXCdp71ehK/qAk67PAbCw572ouyxbMZhsBnMAJ8p+tB1VscMNBlrlivqTTrlSE0Wcoko8MRq+SeqZQWq41SwiinwDdzlzONamq4ukCDskJAI38WwN2exVKFTnHkUa2XFSjN25HB5oe9jWni9JWpffySnT0a4m0nlW8rya8pwO5/Pwk6nDs+As9V7A7dCT3yOJarP8nSYq4ccKzbtZvWy/wtMWoD7PMECPbiyFI9X54ofeTo95rPLEjUTyVoeKXj6l3l2e119h7eLEb5XmM+9PDLnegbu5PM9bySuo7IU5moRvMbraBP4bs00VSV1Aoo+YDY08b1PXZucwvaVZlC1DXAg1wTy6pr0PNJfmGplkClU5jZk1RbJvj6NW12SMX8v/wp+gsW8NeYpWoxbx/8KMAC97sC/2v4BrgAAAABJRU5ErkJggg==) 50% 50% no-repeat; min-width:30px; min-height:30px } .ui-loading i { height:50px; width:50px; display:inline-block } #content,html .mui-cover>header { overflow:hidden } .mui-flex { display:-webkit-box; display:-webkit-flex; display:-ms-flexbox; display:flex; -webkit-flex-wrap:wrap; -ms-flex-wrap:wrap; flex-wrap:wrap } .mui-flex,.mui-flex *,.mui-flex:after,.mui-flex:before { box-sizing:border-box } .mui-flex.vertical { -webkit-box-orient:vertical; -webkit-box-direction:normal; -webkit-flex-direction:column; -ms-flex-direction:column; flex-direction:column } .mui-flex.vertical.reverse { -webkit-box-orient:vertical; -webkit-box-direction:reverse; -webkit-flex-direction:column-reverse; -ms-flex-direction:column-reverse; flex-direction:column-reverse } .mui-flex.vertical .cell { width:auto } .mui-flex.vertical>.cell>.inner { position:absolute; width:100%; height:100% } .mui-flex.horizental { -webkit-box-orient:horizontal; -webkit-box-direction:normal; -webkit-flex-direction:row; -ms-flex-direction:row; flex-direction:row } .mui-flex.reverse { -webkit-box-orient:horizontal; -webkit-box-direction:reverse; -webkit-flex-direction:row-reverse; -ms-flex-direction:row-reverse; flex-direction:row-reverse } .mui-flex.justify-start { -webkit-box-pack:start; -webkit-justify-content:flex-start; -ms-flex-pack:start; justify-content:flex-start } .mui-flex.justify-end { -webkit-box-pack:end; -webkit-justify-content:flex-end; -ms-flex-pack:end; justify-content:flex-end } .mui-flex.justify-center { -webkit-box-pack:center; -webkit-justify-content:center; -ms-flex-pack:center; justify-content:center } .mui-flex.justify-between { -webkit-box-pack:justify; -webkit-justify-content:space-between; -ms-flex-pack:justify; justify-content:space-between } .mui-flex.justify-around { -webkit-justify-content:space-around; -ms-flex-pack:distribute; justify-content:space-around } .mui-flex.align-start { -webkit-box-align:start; -webkit-align-items:flex-start; -ms-flex-align:start; align-items:flex-start } .mui-flex.align-end { -webkit-box-align:end; -webkit-align-items:flex-end; -ms-flex-align:end; align-items:flex-end } .mui-flex.align-center { -webkit-box-align:center; -webkit-align-items:center; -ms-flex-align:center; align-items:center } .mui-flex.align-stretch { -webkit-box-align:stretch; -webkit-align-items:stretch; -ms-flex-align:stretch; align-items:stretch } .mui-flex.align-stretch .cell { height:auto!important } .mui-flex.center { -webkit-box-pack:center; -webkit-justify-content:center; -ms-flex-pack:center; justify-content:center; -webkit-box-align:center; -webkit-align-items:center; -ms-flex-align:center; align-items:center } .mui-flex>.cell { -webkit-box-flex:1; -webkit-flex:1; -ms-flex:1; flex:1; width:0; -webkit-flex-basis:0; -ms-flex-preferred-size:0; flex-basis:0; max-width:100%; display:block; padding:0!important; position:relative } .mui-flex>.cell.fixed { -webkit-box-flex:0!important; -webkit-flex:none!important; -ms-flex:none!important; flex:none!important; width:auto } .mui-flex>.cell.align-start { -webkit-align-self:flex-start; -ms-flex-item-align:start; align-self:flex-start } .mui-flex>.cell.align-end { -webkit-align-self:flex-end; -ms-flex-item-align:end; align-self:flex-end } .mui-flex>.cell.align-center { -webkit-align-self:center; -ms-flex-item-align:center; align-self:center } .mui-flex>.cell.align-stretch { -webkit-box-align:stretch; -webkit-align-items:stretch; -ms-flex-align:stretch; align-items:stretch; height:auto!important } .mui-flex .image-box { height:0; padding-bottom:100%; position:relative } .mui-flex .image-box>img { width:100%; height:100%; display:block; position:absolute } .mui-flex>.cell-1,.mui-flex>.cell-10,.mui-flex>.cell-11,.mui-flex>.cell-12,.mui-flex>.cell-2,.mui-flex>.cell-3,.mui-flex>.cell-4,.mui-flex>.cell-5,.mui-flex>.cell-6,.mui-flex>.cell-8,.mui-flex>.cell-9 { width:auto!important } .mui-flex>.cell-12 { -webkit-flex-basis:100%; -ms-flex-preferred-size:100%; flex-basis:100%; max-width:100% } .mui-flex>.order-12 { -webkit-box-ordinal-group:13; -webkit-order:12; -ms-flex-order:12; order:12 } .mui-flex>.cell-11 { -webkit-flex-basis:91.66666667%; -ms-flex-preferred-size:91.66666667%; flex-basis:91.66666667%; max-width:91.66666667% } .mui-flex>.order-11 { -webkit-box-ordinal-group:12; -webkit-order:11; -ms-flex-order:11; order:11 } .mui-flex>.cell-10 { -webkit-flex-basis:83.33333333%; -ms-flex-preferred-size:83.33333333%; flex-basis:83.33333333%; max-width:83.33333333% } .mui-flex>.order-10 { -webkit-box-ordinal-group:11; -webkit-order:10; -ms-flex-order:10; order:10 } .mui-flex>.cell-9 { -webkit-flex-basis:75%; -ms-flex-preferred-size:75%; flex-basis:75%; max-width:75% } .mui-flex>.order-9 { -webkit-box-ordinal-group:10; -webkit-order:9; -ms-flex-order:9; order:9 } .mui-flex>.cell-8 { -webkit-flex-basis:66.66666667%; -ms-flex-preferred-size:66.66666667%; flex-basis:66.66666667%; max-width:66.66666667% } .mui-flex>.order-8 { -webkit-box-ordinal-group:9; -webkit-order:8; -ms-flex-order:8; order:8 } .mui-flex>.cell-7 { -webkit-flex-basis:58.33333333%; -ms-flex-preferred-size:58.33333333%; flex-basis:58.33333333%; max-width:58.33333333%; width:auto!important } .mui-flex>.order-7 { -webkit-box-ordinal-group:8; -webkit-order:7; -ms-flex-order:7; order:7 } .mui-flex>.cell-6 { -webkit-flex-basis:50%; -ms-flex-preferred-size:50%; flex-basis:50%; max-width:50% } .mui-flex>.order-6 { -webkit-box-ordinal-group:7; -webkit-order:6; -ms-flex-order:6; order:6 } .mui-flex>.cell-5 { -webkit-flex-basis:41.66666667%; -ms-flex-preferred-size:41.66666667%; flex-basis:41.66666667%; max-width:41.66666667% } .mui-flex>.order-5 { -webkit-box-ordinal-group:6; -webkit-order:5; -ms-flex-order:5; order:5 } .mui-flex>.cell-4 { -webkit-flex-basis:33.33333333%; -ms-flex-preferred-size:33.33333333%; flex-basis:33.33333333%; max-width:33.33333333% } .mui-flex>.order-4 { -webkit-box-ordinal-group:5; -webkit-order:4; -ms-flex-order:4; order:4 } .mui-flex>.cell-3 { -webkit-flex-basis:25%; -ms-flex-preferred-size:25%; flex-basis:25%; max-width:25% } .mui-flex>.order-3 { -webkit-box-ordinal-group:4; -webkit-order:3; -ms-flex-order:3; order:3 } .mui-flex>.cell-2 { -webkit-flex-basis:16.66666667%; -ms-flex-preferred-size:16.66666667%; flex-basis:16.66666667%; max-width:16.66666667% } .mui-flex>.order-2 { -webkit-box-ordinal-group:3; -webkit-order:2; -ms-flex-order:2; order:2 } .mui-flex>.cell-1 { -webkit-flex-basis:8.33333333%; -ms-flex-preferred-size:8.33333333%; flex-basis:8.33333333%; max-width:8.33333333% } .mui-flex>.order-1 { -webkit-box-ordinal-group:2; -webkit-order:1; -ms-flex-order:1; order:1 } body { background-color:#f0f0f0 }

  

转载于:https://www.cnblogs.com/zhujiasheng/p/6110340.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值