Opera浏览器显示的菜单(css)不同于在线和本地



在阅读了许多有用的提示之后,我充满了希望,我可以在这里找到我的问题的答案。我正在工作的网页包含一个水平菜单与按钮背景图像。在验证后在浏览器上测试它在FF, Chrome和Opera上看起来很好。上传后,我发现online Opera不显示部分按钮,而其他浏览器没有差异。????提前感谢您对这个问题的任何建议

除了我的上述邮件…尝试,测试,咬指甲,我发现奇怪的菜单渲染只发生在5个链接中的2个…一个名为"commonmail.html",另一个链接回"index.html"。当我选择幻想的名字或只是键入href="#" css正确呈现。我将链接添加到2个屏幕截图中以显示问题:

菜单中的链接名称

菜单的正常链接名称

标记是这样的:

    <ul>
    <li><a class="direkt" href="#">home</a></li>
    </ul>
    <ul>
    <li class="firstlevel">our houses
        <ul>
        <li><a href="nikiti_location.html">in nikiti</a></li>
        <li><a href="#">in kastri</a></li>
        <li><a href="#">new projects</a></li>
        </ul>
    </li>
    </ul>
    <ul>
    <li><a class="direkt" href="nikiti_info.html" title="Informations about Nikiti and the peninsula of Sithonia">nikiti</a></li>
    </ul>
    <ul>
    <li class="firstlevel">informations
        <ul>
        <li><a href="#" title="Read about our family business and our business philosophy">company</a></li>
        <li><a href="#" title="">buying property in greece</a></li>
        </ul>
    </li>
    </ul>
    <ul>
    <li><a class="direkt" href="commonmail.html" title="Informations about Nikiti and the peninsula of Sithonia">contact</a></li>
    </ul>       
</nav>

css是这样的:

nav {
width: 704px;
padding: 0 0 0 16px;
float: left;
}
nav ul {
float: left;
width: 138px;
list-style-type: none; 
}
nav li.firstlevel {
font-size: 93%;
    font-weight:bold;
text-align: center;
padding-top: 17px;
padding-bottom: 17px;
color: #fff;
border: 1px solid transparent; /*--erforderlich für IE 7--*/
background: url(../pic/button110.png) 50% 50% no-repeat;
} 
nav a {
text-decoration: none;
display: block;
font-size: 90%;
text-align: left;
padding-left: 6px;
padding-top: 6px;
padding-bottom: 6px;
background: url(../pic/sublistbg.png) 0 0 repeat-x;
color: #fff;
} 
nav a:hover {
color: #454545;
background: url(../pic/sublisthoverbg.png) 0 0 repeat-x;
} 
nav li {
position: relative;
} 
nav ul ul {
position: absolute; top:50px; left: 30px;
width: 170px;
z-index: 2;
display: none;
} 
nav ul li:hover ul {
display: block;
} 
nav ul  a.direkt:link {
font-size: 93%;
font-weight: bold;
padding-top: 17px;
padding-bottom: 17px;
padding-left: 0;
text-align: center;
color: #fff;
border: 1px solid transparent;
background: url(../pic/button110.png) 50% 50% no-repeat;
} 
nav ul a.direkt:hover {
color: #454545;
background: url(../pic/button110active.png) 50% 50% no-repeat;
border: 1px solid transparent;
} 

最新更新