纯WXSS实现-小程序模块高度等于屏幕高度减固定值

发布于 5 年前作者 jie292367 次浏览最后编辑 5 年前来自 share

直接上代码,相信有需要的朋友一看就懂

page{

  height: 100%;

}

view {

  height: -webkit-calc(100% - 100rpx) !important;

  height: -moz-calc(100% - 100rpx) !important;

  height: calc(100% - 100rpx) !important;

 }

0 回复
暂无回复