Heim  >  Artikel  >  Web-Frontend  >  CSS样式在IE6中失效_html/css_WEB-ITnose

CSS样式在IE6中失效_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:22:47908Durchsuche

CSS代码:
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代码: 

  •      历史沿革


  • 鼠标移上去,字体颜色是改变了,但是背景(onover.gif)没有改变。

    回复讨论(解决方案)

    这太正常了!

    额!知道原因吗?

    嗯,不知道,也不想知道

    我给别人做的Web应用直接写:IE6下本应用不能正常运行,请使用.....

    background-image: url(images2/onover.gif); background-repeat: no-repeat;
    改成
    background-image: url(images2/onover.gif)  no-repeat
    试下
    另外看下图片路径是否正确

    图片路径感觉有点不对

    我试了下能行啊。。用ie tester测试的

    一般背景图片我会加个“../”,页面和背景图的文件夹在同一级目录下。

     

  •      历史沿革

  • .left-change a:hover{width: height:}
    最好把class写在li里。给A标签加上和背景一样的宽高
    IE6对A标签具体你百度一下吧
    Stellungnahme:
    Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn