Home >Web Front-end >HTML Tutorial >CSS style fails in IE6_html/css_WEB-ITnose
CSS code:
a.left-change{ display:block; height: 29px; font-family: "宋体"; font-size: 14px; line-height: 24px; font-weight: normal; color : #000000; padding-right: 10px; padding-left: 26px; }
a.left-change:hover{background-image: url(images2/onover.gif); background-repeat: no- repeat; color:blue; display:block; }
Htm code:
This is so normal!
Uh! Do you know the reason?
Well, I don’t know, and I don’t want to know
I wrote directly for the web application I made for others: This application cannot run normally under IE6, please use...
background-image: url(images2/onover.gif); background-repeat: no-repeat;
Change to
background-image: url(images2/onover.gif) no-repeat
Try it
Also check if the image path is correct
The image path feels a little wrong
I tried it and it worked. . Tested with ie tester
Generally, I will add a "../" to the background image, and the folders of the page and the background image are in the same directory.