html - 使用背景图像时,如何在所有 IE 浏览器中删除 <th> 标记中的背景颜色?

标签 html css

我正在尝试设计我的 table 头样式,使其具有像这样的圆 Angular 图像:

<tr style="background: url(middleimage.gif) repeat-x;">
    <th style="background: url(leftimage.gif) no-repeat;">
        title
    </th>
    <th>
        title
    </th>
    <th style="background: url(rightimage.gif) no-repeat;">
        title
    </th>
</tr>

在 firefox 中这工作正常,但在 ie 中它用白色背景颜色填充第一个和最后一个 th-tag 并且不在 tr-tag 中显示背景图像。

示例:

alt text

我该如何解决这个问题?

最佳答案

你试过吗

style="background: transparent url(yourimage.xyz) no-repeat;"

关于html - 使用背景图像时,如何在所有 IE 浏览器中删除 <th> 标记中的背景颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3212497/

相关文章:

javascript - JQuery - 某些其他元素下的元素不会触发事件

javascript - 将一个计算数组中对象数量的函数放入另一个函数中

javascript - 计算 4x verse 容器的宽度

javascript - 将多个codemirror脚本应用于一个iframe

html - 为什么要使用显示:inline-block?

html - 移动标题没有背景颜色

css - 复杂的 CSS 定位

php - 已删除的 CSS 文件在 joomla 3.2.3 中仍然可用

asp.net - 如何设置高度自动 CSS 属性?

javascript - 如何使用 &lt;input type ="file"/> 的文件名更改 <label> 中的文本