Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个div下体,其width:100%和height:100%,
div
width:100%
height:100%
现在当我尝试设置min-width和min-height我的mainDiv时,它不适用于div标记
min-width
min-height
mainDiv
.mainDiv{ width:100%; min-width:100%; height:100%; min-height:100%; position:relative; top:0px; right:0px; bottom:0px; left:0px; }
现在习惯了
body, html{ height:100%; }
比给你的
div{ min-height:100%; }
现场演示