Cześć,
Jak zwykle kłopot z IE
Poniżej mój kod, który działa pod FF, a nie do końca w IE.
Aby zduplikować problem, należy najechać na System, podświetlić Report, zjechać na dół i ponownie najechać na System.
Widać wtedy pole po trzecim UL-u, którego nie powinno być widać...
PS. Dla IE używam patchu csshover.htc - może to tutaj jest problem?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!--[if IE]>
<style type="text/css" media="screen">
body {
behavior: url(css/csshover.htc); /* call hover behaviour file */
font-size: 100%; /* enable IE to resize em fonts */
}
#menu ul li {
float: left; /* cure IE5.x "whitespace in lists" problem */
width: 100%;
}
#menu ul li a.sub_menu {
height: 1%; /* make links honour display: block; properly */
}
</style>
<![endif]-->
<link rel="stylesheet" href="css/menu.css" type="text/css" media="screen" /> <li><a class="sub_menu" href="home.php">View
</a></li> <li><a class="sub_menu" href="#">Users
</a> <li><a class="sub_menu" href="add_user.php">Add
</a></li> <li><a class="sub_menu" href="manage_user.php">Manage
</a></li> <li><a class="sub_menu" href="#">Report
</a> <li><a class="sub_menu" href="excel.php">Excel raw data
</a></li> <li><a class="sub_menu" href="report.php">User report
</a></li>
#menu {
width: 100%;
background-image: url("../images/topbg.gif");
}
#menu ul {
width: 7em;
float: left;
list-style: none;
margin: 0;
padding: 0;
}
#menu ul.top_menu_right {
float: right;
}
#menu a {
background-image: url("../images/topbg.gif");
display: block;
margin: 0;
padding: 2px 3px;
color: #fff;
font: bold 12px Verdana;
text-decoration: none;
}
#menu a.sub_menu:hover {
color: #000;
background: #C7E7FB;
}
#menu a.sub_menu {
color: #000;
font: 12px Verdana;
background: #EDF6FC;
}
#menu li {
position: relative;
}
#menu ul ul {
position: absolute;
z-index: 500;
}
#menu ul ul ul {
top: 0;
left: 100%;
}
div#menu ul ul,
div#menu ul li:hover ul ul,
div#menu ul ul li:hover ul ul
{display: none;}
div#menu ul li:hover ul,
div#menu ul ul li:hover ul,
div#menu ul ul ul li:hover ul
{display: block;}