当我尝试在横幅顶部链接时不起作用。我的事情 Div z-index 有问题。但我无法得到它。任何人都可以帮我解决这个问题。我已附上与此相关的内容。请使用以下链接查看该网站。
http://10.8.12.41/srilanka/
#header{
color: #CFCFCF;
font-weight: 600;
/*border-bottom: 4px solid #84AE03;*/
background:#fff;
width: 100%;
z-index: 10;
}
#banner{
height: 100%;
margin: 0px auto 0;
position: relative;
width: 1000px;
z-index: 1;}
#topnavbar{
height: 26px;
/* margin:-5px 102px 0 0;*/
position: relative;
background:url(../images/top_lin.png) repeat-x;
float:left;
width:100%;
float:right;
}
#topnavmenu{
float:right;
width:300px;
padding:3px;
}
#topnavmenu a{
color: #FFFFFF;
display: inline-block;
font-family: 'Open Sans Condensed',sans-serif;
font-size: 11px;
font-weight: 600;
/*line-height: 35px;*/
padding: 0;
text-align: center;
text-decoration: none;
width: auto;
z-index:10px;
}
#apDiv2 {
height: 100%;
margin:0px auto;
position: relative;
width: 1000px;
z-index: 1;
background:url(../images/menubg.png) repeat;
background-color:#00247d;
}
Html
------------------------------------------------
<div id="topnavbar">
<div id="topnavmenu">
<a href="#">CheckmyTrip</a> |<a href="#">Baggage</a> | <a href="#">Travel Tips</a>
</div>
</div>
<div id="banner">
<img src="images/Banner.png" />
</div>
<div id="apDiv2">
<!-- Start css3menu.com BODY section id=2 -->
<ul id="css3menu2" class="topmenu">
<li class="toplast"><a href="contactus.php" style="height:32px;line-height:32px;"><img src="index_files/css3menu2/contact.png" alt=""/>Contact Us</a></li>
</ul>
<p style="display:none"><a href="http://css3menu.com/">Pure CSS Dropdown Menus Css3Menu.com</a></p>
<!-- End css3menu.com BODY section -->
<p style="display:none"><a href="http://css3menu.com/">Pure CSS Dropdown Menus Css3Menu.com</a></p>
<!-- End css3menu.com BODY section -->
</div>