阅读背景:

移动端display:flex

来源:互联网 

移动端display:flex布局时候,子元素有背景颜色时候,背景颜色不能铺满,有缝隙,

// less
.t-flex {
     background: blue;
     display: flex;
     > div:first-child {
         width: 100%;
     }
     > div:last-child {
         width: 100%;
     }
     > div {
         width: 30px;
          background: blue;
         height: 30px;
         flex: 1;
     }
 }/



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: