返回菜单导航显示样......登陆

菜单导航显示样式

JasonKim2019-03-15 19:59:56212
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>导航条</title>
<style type="text/css">
*{
margin: 0;padding: 0;list-style: none;
}
.list{
width: 100%;
background: #ccc;
margin: 0 auto;
}

.list li{
float: left;
width: 50px;
height: 35px;
line-height: 35px;
text-align: center;
margin-left: 5px;
margin-top: 15px;
background: pink;
}
.web{
position: absolute;
}

.menu{
position: relative;
left: 0px;
top: 0px;
display: none;
/*top: 35px;*/
}

.menu li {
float: none;
background: blue;
color: white;
margin: 0px;
margin-bottom: 5px;
}

.list>li:hover .menu{
display: block;
}
</style>
</head>
<body>
<ul class="list">
<li class="Web">Web
<ul class="menu">
<li>Css</li>
<li>Jquery</li>
<li>Html</li>
</ul>
</li>
<li>PHP</li>
<li>C++</li>
</ul>
</body>
</html>


最新手记推荐

• 用composer安装thinkphp框架的步骤• 省市区接口说明• 用thinkphp,后台新增栏目• 管理员添加编辑删除• 管理员添加编辑删除

全部回复(0)我要回复

暂无评论~
  • 取消回复发送