横向下拉菜单的css问题

yanxw_227 yanxw_227 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
横向下拉菜单css实现,无js脚本,ie下没有问题,firefox下就出问题了。

<style>
body {color:#fff;margin-top:-8px;}
#wrapper {color:#000;}
#info {margin-top:20px;}
#head {height:0px; border:0;}
#positioner {clear:both; position:relative; left:1px; z-index:100;}
.menu {display:block; position:absolute;}
.menu a.outer, .menu a.outer:visited
{ /* 定义menu的样式 */
color:#fff;
width:202px;
height:18px;
display:block;
background:#95A1D9;
border:1px solid #000;
margin-right:1px;
text-align:center;
float:left;
text-decoration:none;
font-family: verdana, arial, sans-serif;
font-size:14px;
line-height:18px;
overflow:hidden;
}
.menu a.outer:hover
{
background:blue;
overflow:visible;
}
.menu a.outer:hover table.first
{
display:block;
background:#eee;
border-collapse:collapse;
}
.menu a.inner, .menu a.inner:visited
{
display:block;
width:200px;
height:18px;
border-bottom:1px solid #000;
text-decoration:none;
color:#000;
font-family: verdana, arial, sans-serif;
font-size:12px;
text-align:center;
}
.menu a.inner:hover
{
background:#add;
}

</style>

<DIV id=wrapper>

<DIV id=head>
<DIV id=positioner>
<DIV class=menu>
<A target=content class=outer href="1.php">首页
<TABLE class=first>
<TR>
<TD>
<A target=content class=inner title="下拉1" href="1.php">下拉1</A>
<A target=content class=inner title="下拉2" href="2.php">下拉2</A>
</TD>
</TR>
</TABLE>
</A>
</DIV>
</DIV>
</DIV>

<DIV id=info>
</DIV>


</DIV>
...全文

相关推荐

评论 8
收藏 已收藏
分享
返回顶部
yanxw_227
CSS 61,116 成员 60,701 内容