【发布时间】:2011-04-19 07:42:28
【问题描述】:
我无法将 3 张图片添加到 CSS 中的表格单元格中,我想知道是否有人可以帮助我找出我做错了什么。这是我所拥有的:
css
.Example {
background-image:url("image1.gif"),url("image2.gif"),url("image3.gif");
background-position: top left, top center, top right;
background-repeat: no-repeat, repeat-x, no-repeat;
}
html
<td class="Example">
<a href="example">Example</a>
</td>
然而,当我打开页面时,我得到的只是一个显示没有背景图像的示例的单元格。有什么建议吗?
【问题讨论】:
-
你在什么浏览器中尝试这个?这是相对较新的,尚未在所有浏览器中完全支持。图片存在吗?
标签: html css image html-table