Home >Web Front-end >HTML Tutorial >CSS style fails in IE6_html/css_WEB-ITnose

CSS style fails in IE6_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:47977browse

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:

  •      ; History


  • When the mouse moves up, the font color changes, but the background (onover.gif) does not change.


    Reply to discussion (solution)

    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.

  •      Historical Evolution
    .left-change a:hover{width: height:}
    It is best to write the class in li. Add the same width and height to the A tag as the background
    Please search Baidu for details on the A tag in IE6

  • Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn