我想制作一个占满 100% 屏幕的 div,但当放大时,它会继续占据原来的大小,而不是缩小以适应新的尺寸。有什么办法吗?我无法显示任何代码,因为我还没有尝试过任何东西
最佳答案
希望这对您有所帮助!
<html>
<body style="width:100%;">
<div id="wideDiv" style="width:100%;background-color:lemonchiffon;height:20px;position:static;">
Hope this helps!
</div>
</body>
</html>
关于html - 将 div 宽度设置为 100% 并将其固定在该宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50609788/