gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 13:14:06 24 4
gpt4 key购买 nike

在阅读了这方面的许多有用提示后,我充满希望可以在这里找到问题的答案。我正在处理的网页包含一个带有按钮 background-imgs 的水平菜单。验证后在浏览器上测试它在 FF、Chrome 和 Opera 上看起来不错。上传后我发现online Opera 没有显示部分按钮,而其他浏览器没有区别。 ???预先感谢有关此问题的任何想法

最佳答案

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

menu with fantasy link names

menu with normal link names

标记是这个:

    <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;
}

关于css - Opera 浏览器显示菜单 (css) 在线和本地不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15174688/

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