那为高手能给我介绍一下在css中怎么定义下拉菜单

gongyu 2006-05-26 11:41:26
那为高手能给我介绍一下在css中怎么定义下拉菜单,给我一段代码也行,谢谢!
...全文
142 6 打赏 收藏 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
gongyu 2006-05-26
  • 打赏
  • 举报
回复
best_inh(一无所)
谢谢你,真的太感谢你了,^_^
gongyu 2006-05-26
  • 打赏
  • 举报
回复
^_^,是我,刘!!看我给你留言吧
162100 2006-05-26
  • 打赏
  • 举报
回复
自创的,自认为最简洁、兼容性最好的
送给你

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>导航条</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.sol {
position:absolute;
left:10px;
top:0px;
}
a.menu {
float:left
width:60px;
height:17px;
line-height:17px;
float:left;
overflow:hidden;
color: #FFF;
text-align:center;
text-decoration:none;
background-color:#467EEF;
border:#FF0000 1px solid;
}
a.menu:hover {
color:#fff;
height:69px;
text-decoration:none;
}
-->
</style>
</head>
<body>
<div class="sol">
<a href="#" class="menu">导航条一<br>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.163.com';">网易</div>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.sina.com';">新浪</div>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.sohu.com';">搜狐</div>
</a>
<a href="#" class="menu">导航条二<br>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.csdn.net';">CSDN</div>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.china.com';">中华</div>
<div onmouseover="this.style.backgroundColor='#C4D8FF'" onmouseout="this.style.backgroundColor=''" onclick="window.location.href='http://www.tom.com';">TOM</div>
</a>
</div>
<br>
<br>
<br>
下面的内容
</body>
</html>
senvenliu 2006-05-26
  • 打赏
  • 举报
回复
小翁??
gongyu 2006-05-26
  • 打赏
  • 举报
回复
是做成导航条的那种,怎么在css中定义啊
underone 2006-05-26
  • 打赏
  • 举报
回复
<div id="menu_parent">Main Menu</div>

<div id="menu_child">
<a href="#">Item 1</a>
<a href="#">Item 2</a>
<a href="#">Item 3</a>
</div>

<script type="text/javascript">
at_attach("menu_parent", "menu_child", "hover", "y", "pointer");
</script>

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧