I cannot ensure whether the background-image style is valid for <tr>
because the image doesn't display in my computer.
<tr style='background-image: url(/images/Bet188/LeftMenu/xyz.png>...</tr&g开发者_Python百科t;
If you fix the typo (missing close parenthesis and quotes) it should work. (You should be using a CSS file anyway, together with an HTML validator.)
However, you must be aware that some browsers do not handle backgrounds in <tr>
properly if you also have a background in some on the row cells (namely, some IE versions).
do this...
<tr style="background-image: url('/images/Bet188/LeftMenu/xyz.png');">...</tr>
In reviewing the CSS spec for tables, it seems to indicate that one should be able to apply a background image to a table row much like applying a background to any specific cell or to the table at large.
However, only Firefox 1.0.3 (and likely all the way back to 1.0) managed to apply the background correctly. In both IE 6 and Opera 7.54, the background image that is declared on the row gets applied to each cell contained within. This creates an ugly repeating pattern that is rather troublesome.
source: snook.ca
By the way your code:
<tr style='background-image: url(/images/Bet188/LeftMenu/xyz.png>...</tr>
will not work... You forgot the closing ' before your > :
<tr style='background-image: url(/images/Bet188/LeftMenu/xyz.png'>...</tr>
精彩评论