my dropdown menu before loading complete,will display not parallel
like this:
after loading complete is ok.
like this:
i want to ask how can set tie
log in direct show menu like picture 2 ?
my css:
like this:
after loading complete is ok.
like this:
i want to ask how can set tie
log in direct show menu like picture 2 ?
my css:
- Code:
<head>
<style type="text/css">
/* common styling */
.menu {position:relative; margin:0; font-size:15px; margin:30px 0;display:}
.menu ul li a, .menu ul li a:visited {display:block; text-decoration:none; color:#000000;width:102px; height:20px; text-align:center; color:#000000; border:1px solid #000000; background:#CEE9F0; line-height:20px; font-size:14px; overflow:hidden; border-radius:2px;}
.menu ul {padding:0; margin:0;list-style-type: none; }
.menu ul li {float:left; margin-right:1px; position:relative;}
.menu ul li ul {display: none;}
/* specific to non IE browsers */
.menu ul li:hover a {color:#fff; background:#36f;}
.menu ul li:hover ul {display:block; position:absolute; top:21px; left:0; width:105px;}
.menu ul li:hover ul li a.hide {background:#CEE9F0; color:#000;}
.menu ul li:hover ul li:hover a.hide {background:#6fc; color:#000;}
.menu ul li:hover ul li ul {display: none;}
.menu ul li:hover ul li a {display:block; background:#ddd; color:#000;}
.menu ul li:hover ul li a:hover {background:#6fc; color:#000;}
.menu ul li:hover ul li:hover ul {display:block; position:absolute; left:105px; top:0;}
.menu ul li:hover ul li:hover ul.left {left:-105px;}
</style>
<!--[if lte IE 6]>
<style type="text/css">
.menu ul li a.hide, .menu ul li a:visited.hide {display:none;}
.menu ul li a:hover ul li a.hide {display:none;}
.menu ul li a:hover {color:#fff; background:#36f;}
.menu ul li a:hover ul {display:block; position:absolute; top:21px; left:0; width:105px;}
.menu ul li a:hover ul li a.sub {background:#6a3; color:#fff;}
.menu ul li a:hover ul li a {display:block; background:#ddd; color:#000;}
.menu ul li a:hover ul li a ul {visibility:hidden;}
.menu ul li a:hover ul li a:hover {background:#6fc; color:#000;}
.menu ul li a:hover ul li a:hover ul {visibility:visible; position:absolute; left:105px; top:0; color:#000;}
.menu ul li a:hover ul li a:hover ul.left {left:-105px;}
</style>
<![endif]-->
</head>
Last edited by xiaomah01 on December 15th 2011, 7:43 pm; edited 1 time in total