绝对定位之后,top: 0; bottom: 0; left: 0; right: 0;根据盒模型,宽高就是自动的,会让元素撑满
position:absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
微信扫一扫
绝对定位之后,top: 0; bottom: 0; left: 0; right: 0;根据盒模型,宽高就是自动的,会让元素撑满
position:absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
相关推荐