绝对定位之后,top: 0; bottom: 0; left: 0; right: 0;根据盒模型,宽高就是自动的,会让元素撑满
position:absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
CSS让行内元素撑满整个视口
阅读 70
2022-11-07
绝对定位之后,top: 0; bottom: 0; left: 0; right: 0;根据盒模型,宽高就是自动的,会让元素撑满
position:absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
相关推荐
精彩评论(0)