我有一个标题图像在左边。我试图在标题中放置一个背景图像,但bg图像从标志图像的右侧开始。标志图像是一个透明的PNG图像,所以我猜想Bg图片可以放在logo图片后面。如何把背景图像放在logo图像后面?
下面是HTML
<div id="header">
<div class="fl" style="width:378px; height:79px; overflow:hidden;">
<p align="left"><a href="http://mysite.com/magento/index.php/"><img src="mysite.com/magento/skin/frontend/default/my_theme/images/dlogo.png" ></a></p>
</div>
</div>
CSS的标题:
#header{ width:972px; padding:15px 0px 10px 0px; margin:0 auto; text-align:left; height:117px; background:url(../images/dbody_background.jpg)}
这个工作对我来说:http://jsfiddle.net/Bk4qp/也许你有你的血糖有问题图片 ? –
这里有什么区别? – akt
无。我用你的代码与我的图片(我没有你的)。如果我理解你的问题,它似乎工作。 –