English 中文(简体)
1. 横向导航问题
原标题:Horizontal navigation position problem with Firefox

I m designing a website (newbie) and I came across this problem with horizontal navigation menu in Firefox that I am stuck with.

This is how it looks like in the latest Safari, Chrome, Webkit (OS X): https://i.stack.imgur.com/f8pXu.png

This is how it looks like in Firefox 5 (OS X): https://i.stack.imgur.com/daKh6.png

在这里,我前面的社保会有一些使用假象的问题,因此,“rib子”的双端是一个背景形象。

.mod_menu {
width:940px;
height:50px;
background-image:url("tl_files/images/navbg.png");
background-repeat:repeat-x;
}

.mod_menu ul {
margin:10px 0 0 15px;
padding:0; 
}

.mod_menu li {
position:relative;
float:left;
border-right:1px solid #247db8;
list-style-type:none;
border-left: 1px solid #005c8e;
}

.mod_menu li a {
display:block;
padding:5px 25px;
font-family:Helvetica, Arial, sans-serif;
font-size:10pt;
color:#ffffff;
text-decoration: none;
text-shadow: 0px -1px 1px #092c47; 
}

页: 1

<div id="wrapper">
    <div id="header">
        <div class="inside">
            <div id="logo">
            <a href="/index.html">
                <img src="tl_files/images/logo_f.png" alt="Logo" />
            </a>
            </div>
            <div class="mod_quicklink block">
            <ul>
                <li><a href="kontakt.html">Kontakt</a></li>
                <li><a href="prihlaseni.html">Přihlášení</a></li>
                <li><a href="registrace.html">Registrace</a></li>
            </ul>
            </div>
            <div class="mod_navigation mod_menu block">
            <a href="#skipNavigation1" class="invisible">Přeskočit navigaci</a>
            <ul class="level_1">
                <li class="active first"><a href="index.html"  class="first">RL - Corpus</a>
                <img id="drop" src="tl_files/img/drop.png" alt="" /></li>
                <li class="sibling"><a href="novinky.html" title="Novinky" class="sibling">Novinky</a></li>
                <li class="sibling"><a href="zdravotnicka-cinnost.html" title="Zdravotnícka Činnost"                class="sibling">Zdravotnícka činnost</a></li>
                <li class="sibling"><a href="skolici-cinnost.html" title="Školíci Činnost" class="sibling">Školíci činnost</a></li>
                <li class="sibling"><a href="metoda-v-vojty.html" title="Metoda V. Vojty" class="sibling">Metoda V. Vojty</a></li>
                <li class="sibling last"><a href="kontakt.html" title="Kontakt" class="sibling last">Kontakt</a></li>
            </ul>
            <a name="skipNavigation1" id="skipNavigation1" class="invisible">&nbsp;</a>
            </div>
        </div>
    </div>
</div>
最佳回答

你们需要清除浮标。

增加clear: both; to the div with the category mod_navigation mod_menu/2005/4/code> specified in firebug.

问题回答

添加clear:左边。 你的标志在左边浮动,没有清理浮标,那么,你会尝试并继续沿着同一条线(至少是代号)进行。 我也建议进行消防。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Private FireFox plugin

I m looking at getting a FireFox plugin developed - but is it possible to create a plugin that is for private use only, so only those I share it with have it and not open to the masses? Need this for ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Cross-browser development

I m developing a web application for a new service, starting from Firefox 3.5. The interface design is tableless, only using divs + CSS & performance-blessed practices. Now, while being ...

Cross browser way of setting IFrame to "about:blank"?

Does anybody know a proper, cross-browser way to "empty" an IFrame? Is "about:blank" recognized without error across all browsers? Is it valid to give an IFrame an empty src?