谷歌Chrome浏览器bug与tr背景 [英] Google Chrome bug with tr background
本文介绍了谷歌Chrome浏览器bug与tr背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试将背景图像设置为表格行,但背景适用于所有td儿童。
I'm trying to set a background-image to a table row, but background is applied to all its td children.
在IE7中,但它是用
tr {
position: relative;
}
任何暗示?
谢谢
推荐答案
这适用于我在所有浏览器:
This works for me in all browsers:
tr {
background: transparent url(/shadow-down.gif) no-repeat 0% 100%;
display: block;
position: relative;
width: 828px;
}
tr td{
background: transparent;
}
这篇关于谷歌Chrome浏览器bug与tr背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文