gpt4 book ai didi

html -
  • IE7 中的差距
  • 转载 作者:行者123 更新时间:2023-11-28 18:40:31 24 4
    gpt4 key购买 nike

    我知道有很多关于此的问题,但似乎没有一个答案能解决我的问题。

    并不是所有的元素都过大,只有 1 个元素被推得太靠右了。我已经查看了一百万次我拥有的东西,但我只在 IE8 和 IE7 中遇到问题;这个额外的差距在 IE9 和所有其他浏览器中是不存在的。

    This is the gap

    我的 CSS:

        #navigation{
    background: url("../images/nav.png") repeat-x;
    height: 88px;
    width: 1000px;
    margin: 0 auto;
    }
    #navigation .menu{
    padding: 5px 0px 0px 155px;
    }
    #navigation .menu ul{
    display: inline;
    }
    #navigation .menu ul li{
    list-style: none;
    float: left;
    padding: 0px 0px 0px 25px;
    }
    #navigation .menu a.home{
    display: block;
    background-image: url("../images/b_home.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.home:hover,#navigation .menu a.home.current{
    background-image: url("../images/h_home.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.content{
    display: block;
    background-image: url("../images/b_content.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.content:hover,#navigation .menu a.content.current{
    background-image: url("../images/h_content.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.report{
    display: block;
    background-image: url("../images/b_report.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.report:hover,#navigation .menu a.report.current{
    background-image: url("../images/h_report.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.users{
    display: block;
    background-image: url("../images/b_users.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.users:hover,#navigation .menu a.users.current{
    background-image: url("../images/h_users.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.media{
    display: block;
    background-image: url("../images/b_media.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.media:hover,#navigation a.menu .media.current{
    background-image: url("../images/h_media.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.event{
    display: block;
    background-image: url("../images/b_events.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.event:hover,#navigation .menu a.event.current{
    background-image: url("../images/h_event.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.news{
    display: block;
    background-image: url("../images/b_news.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.news:hover,#navigation .menu a.news.current{
    background-image: url("../images/h_news.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.settings{
    display: block;
    background-image: url("../images/b_settings.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }
    #navigation .menu a.settings:hover,#navigation .menu a.settings.current{
    background-image: url("../images/h_settings.png");
    background-repeat: no-repeat;
    height: 74px;
    width: 74px;
    }

    我的 HTML:

    <div id="navigation">
    <div class="menu">
    <ul>
    <li><a rel="tooltip" class="home current" href="#" title="Home"></a></li>
    <li><a rel="tooltip" class="content" href="#" title="Content"></a></li>
    <li><a rel="tooltip" class="report" href="#" title="Reports"></a></li>
    <li><a rel="tooltip" class="users" href="#" title="Users"></a></li>
    <li><a rel="tooltip" class="media" href="#" title="Media"></a></li>
    <li><a rel="tooltip" class="events" href="#" title="Events"></a></li>
    <li><a rel="tooltip" class="news" href="#" title="News"></a></li>
    <li><a rel="tooltip" class="settings" href="#" title="Settings"></a></li>
    </ul>
    </div>
    </div>

    指向正确方向的点会很棒!

    最佳答案

    看来我在 html 中为 <li><a class="event"> 犯了一个错误我把"events"所以我只需要去掉 s,IE7 是唯一向我显示错误的浏览器!

    讨厌 IE,但它今天帮助了我,谢谢大家!

    关于html - <li> IE7 中的差距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11582094/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com