DW8—如何让鼠标移到这个图片上,会出现一个下拉图片或者菜单,能插入链接的那种 30
展开全部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{padding:0; margin: 0; font-family: "微软雅黑";}
ul,li{list-style: none;}
.nav li{float: left; width: 100px; text-align: center; border:#eee 1px solid; line-height: 40px; cursor: pointer;}
.nav li a{width: 100px; display: block; background: #ddd; border-bottom:#fff 1px solid;}
.subnav{display: none;}
.nav li:hover .subnav{display: block;}
</style>
</head>
<body>
<ul class="nav">
<li>标题一
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题二
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题三
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题四
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题五
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
</ul>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{padding:0; margin: 0; font-family: "微软雅黑";}
ul,li{list-style: none;}
.nav li{float: left; width: 100px; text-align: center; border:#eee 1px solid; line-height: 40px; cursor: pointer;}
.nav li a{width: 100px; display: block; background: #ddd; border-bottom:#fff 1px solid;}
.subnav{display: none;}
.nav li:hover .subnav{display: block;}
</style>
</head>
<body>
<ul class="nav">
<li>标题一
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题二
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题三
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题四
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
<li>标题五
<div class="subnav">
<a href="">aaa</a>
<a href="">bbb</a>
<a href="">ccc</a>
</div>
</li>
</ul>
</body>
</html>
追问
能不能给一下制作的步骤
追答
先把下拉菜单都排出来,然后再隐藏,然后再hover显示就可以了
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询