It is better to use jquery to achieve this effect, and the animate method of the dom operation method can easily solve it. . . In your situation, even if there is a corresponding selector, it cannot be solved Css event processing does not allow chaining, and this has nothing to do with the selector Css has not been selected before Element selector If you must use css I am afraid you can only use position:relative to displace the background and in doing so you must abandon the table tags (use blocks for tr and td Level element replacement) The content in each block must also be adjusted
It is better to use
jquery
to achieve this effect, and the animate method of the dom operation method can easily solve it. . .In your situation, even if there is a corresponding selector, it cannot be solved
Css event processing does not allow chaining, and this has nothing to do with the selector
Css has not been selected before Element selector
If you must use css
I am afraid you can only use
position:relative
to displace the backgroundand in doing so you must abandon the table tags (use blocks for
tr
andtd
Level element replacement)The content in each block must also be adjusted