Home  >  Article  >  Web Front-end  >  IE6.0中的display:none;问题_html/css_WEB-ITnose

IE6.0中的display:none;问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:13859browse

HTML代码:


     

           
  • 论坛

  •        
  • 校内导航


  • Css代码:
    .mainul li{ float:left;
        font-size:15px;
        text-align:center;
        font-family:"华文细黑";
        width:120px;}
    .disul{ display:none;}

    ul,li{ list-style:none;}

    ul{ padding:0;
        marggin:0;}


    IE6.0显示效果

    IE8中就正常:

    回复讨论(解决方案)

    各位大虾指教下吧,IE6一直很头疼,在IE6中要怎么改才能是IE8中那种效果??

    用流式布局应该没有问题,你可以参考:http://wrongwaycn.github.com/bootstrap/docs/

    html代码不全啊。。

    试试

    .mainul li {_postion:relative;}.disul {_position:absolute;}

    我加了.mainul li {_postion:relative;}
    .disul {_position:absolute;top: 100px; left:120px;}

    成这样了,

    指向所有主菜单的时候子菜单都出现在了一个位置

    这个比较简单,都是基本的布局。

    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