【发布时间】:2013-12-25 05:56:28
【问题描述】:
当我缩放我的页面时,一个元素最终会拉伸它,当它拉伸时,你会得到与上面 jsFiddle 中的情况非常相似的情况。
蓝色元素代表拉伸页面的元素,不可更改,其余为公平游戏。我需要红色框来适当地填充页面。
提前非常感谢!
<div class="a">A</div>
<div class="b">B</div>
<div class="c"></div>
<div class="somethingBig">Blah!</div>
div {
height: 50px;
background-color: red;
margin-bottom: 10px;
font-family: Verdana;
color: white;
font-size: 30px;
line-height: 50px;
}
.a { width: 100%; }
.b { width: 100vw; }
.c { width: 100%; }
.somethingBig {
width: 600px;
background-color: blue;
}
【问题讨论】:
-
您遇到了什么问题?我没有看到缩放有什么奇怪的地方。 “适当地”填写是什么意思?
-
使用底部的滚动条,红色块没有填充到蓝色的末尾(右)!
-
* 放大时。