【发布时间】:2014-10-30 11:22:33
【问题描述】:
我有一个 td,我希望背景图像 100% 不重复。
以下代码适用于除 ie8 +- 之外的所有内容。不知道 ie10 因为我在 xp pro 服务器上运行。
.td1 {
background-repeat: no-repeat;
background-size: cover;
}
<td class="td1" style="max-height: 100%; max-width: 100%" background="../art1/#bg1mg#.jpg" align="center">
由于图像随 td 标记中的变量“bg1mg”发生变化,我无法在样式部分输入图像 url。
tnx 提前。
【问题讨论】:
标签: html css internet-explorer-8 html-table