【发布时间】:2012-04-15 03:34:52
【问题描述】:
我需要实现以下目标,一个 div 包含一个由 CMS 管理的图像,并且还有一个显示背景颜色的选项,所有内容都将与这个背景图像重叠。
由于图像是 CMS 管理的,我必须插入一个图像标签....
<HEADER>
<div> image tag placed here</div> -------this div is absolutely positioned which is
used to show the image in the background or color.
<CONTENT>
<FOOTER>
当没有显示图像并且它必须只显示背景颜色时,我在布局上苦苦挣扎,因为它没有完全覆盖内容的背景。
有什么帮助吗?
提前致谢。
【问题讨论】:
-
我怎样才能获得背景图像和颜色以显示在背景中以及内容重叠......
标签: css image background absolute