html - 带有 tr 背景的 Google Chrome 错误

标签 html css google-chrome

我正在尝试将背景图像设置为表格行,但背景已应用于其所有 td 子项。

在 IE7 中有相同的错误,但已解决

tr {
    position: relative;
}

有什么提示吗?

谢谢

最佳答案

这适用于所有浏览器:

tr {
background: transparent url(/shadow-down.gif) no-repeat 0% 100%;
display: block;
position: relative;
width: 828px;
}

tr td{
background: transparent;
}

关于html - 带有 tr 背景的 Google Chrome 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2594428/

相关文章:

html - 滚动条在 IE7、FF 和 Chrome 的自动调整大小框中表现不佳

javascript - 在 webpack.config.js 中定义 css 文件

javascript - 切换按钮以调整 div 大小

html - 从 HTML 样式迁移到 CSS 样式

swift - 使用添加的 url 方案无法打开 URL

html - 基于 Table/Table-cell 的 3 列布局在 Chrome 和 Opera 上不起作用

html - 如何使 div 的整个区域都可以点击,同时排除该区域顶部的复选框?

html - 我如何定位第一个没有特定类(class)的 child ?

javascript - 将 javascript 输入循环到 html 表单

javascript - 为什么我无法在 Chrome 调试器中访问 $.each 循环内的变量?