我需要.hero-overlay(小麦啤酒玻璃部分)容器在按比例缩小时保持响应并保持在英雄图像(960x300图像)内。现在,当浏览器变窄时,div会溢出英雄图像。不在另一个div内缩放
在小型设备上,例如手机(320像素或更小),我计划隐藏英雄覆盖图。在中等到桌面设备上,我需要图像和覆盖图按比例缩放。
http://jsfiddle.net/heymila/kWv7R/
<section class="header-hero">
<div class="hero-image"><img src="http://placehold.it/960x300"/></div>
<div class="hero-overlay span5">
<div class="row">
<div class="span12">
<p class="lead">Wheat beer glass</p>
<p>Wheat beer glass, anaerobic malt extract tulip glass. hops aau tulip glass, yeast heat exchanger hops bottle conditioning?</p>
</div>
</div>
</div><!-- end hero-overlay -->
</section>
如何使其在较小宽度的设备中显示?解决方案仅取决于该要求。 –