【发布时间】:2011-06-05 17:26:34
【问题描述】:
我非常困惑为什么我的代码不能正确显示图像。这是我的代码:
<style type = "text/css">
#pic {
background:url('http://www.tishbi.eu/img/shopping_cart.png') no-repeat;
</style>
<div id = "pic"> <p>
</p> </div>
只有一小部分图像与文本一起显示...我很困惑为什么会发生这种情况。我可以显示整个图像的唯一方法是在图像周围添加近 170 像素的填充。有人请帮忙!
谢谢。
【问题讨论】:
标签: html css image facebook background-image