Google Chrome bug with tr background

后端 未结 11 2061
天命终不由人
天命终不由人 2020-12-16 11:32

I\'m trying to set a background-image to a table row, but background is applied to all its td children.

In IE7 there is the same bug but it is solve with

<         


        
11条回答
  •  误落风尘
    2020-12-16 12:28

    This is the only solution I am aware of without using JavaScript. It has the shortcoming of you specifying the height of the TR and the TD, because the TR is positioned absolute. I am also not sure how it will behave in other browsers.

    
    
    

提交回复
热议问题