最简单的手机H5起始布局

2018-11-18  本文已影响12人  Negnulebin

html
body
#app

*{
box-sizing: border-box
z-index: 10
}
body{
background gray
}

app {

position: relative
height: 100%
min-height: 100vh
background: white
max-width: 540px
margin: 0 auto
padding-bottom: 60px // 给footer留空,可不用
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
-webkit-tap-highlight-color: transparent
}

上一篇 下一篇

猜你喜欢

热点阅读