1.不要手动加减数字算高度间距,有效利用编译器的优势:
<style lang="stylus" scoped>
headerHeight = 100px
footerHeight = 200px
height headerHeight - @padding[0]
height "calc(100vh - %s - %s)" % (headerHeight footerHeight)
padding-top 55px;
height size - @padding-top
</style>
2.