height: calc(100vh - 80rpx);
时间: 2024-05-22 14:12:02 浏览: 147
记录微信小程序 height: calc(xx - xx);无效问题
5星 · 资源好评率100%
This CSS rule sets the height of an element to be the viewport height (100vh) minus 80rpx. The viewport height is the height of the browser window, and 1vh is equal to 1% of the viewport height. The 80rpx value is a relative unit that represents 80 pixels on the screen. Therefore, this rule will make the element take up most of the screen height, with a small margin of 80 pixels at the bottom.
阅读全文