【发布时间】:2011-10-19 13:07:09
【问题描述】:
基本上我想制作具有 3 个半透明图像背景的容器,这样我就可以将内容放在所有这些背景上。概念是
背景#1 静态尺寸
背景 #2 可调整大小
背景#3 静态尺寸
我希望能够将内容放在所有这 3 个背景上以获得such an effect。
我在想这样的事情:
<div style="position: absolute; height: auto;">
<div style="background: url('images/container.png') repeat-y; height: 100%; width: 990px; position: absolute; top: 10px;"></div>
<div style="background: url('images/containerTop.png') no-repeat; height: 10px; width: 990px; position: absolute;"></div>
<div style="background: url('images/containerBottom.png') no-repeat; height: 11px; width: 990px; position: absolute; bottom: -21px;"></div>
text<br />
text<br />
text<br />
text<br />
</div>
实际上,块的大小还可以,但我不知道如何将文本放在 3 个块上,并使大小仍然可以。
【问题讨论】:
标签: css html background height