1 Star 0 Fork 7.1K

王鹤飞0/MCMS

forked from 铭飞/MCMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 3.50 KB
一键复制 编辑 原始数据 按行查看 历史
王鹤飞 提交于 2021-02-23 18:27 . 测试使用
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="header">
<div class="content">
<div class="logo">
<img src="./zihang1.png" alt="zihang">
</div>
<div class="nav">
<ul class="navFirst">
<li ><a href="">出生</a>
<div class="suv">
<div id="triangle-up"></div>
<ul class="sub_nav">
<li>菜单一</li>
<li>菜单一</li>
<li>菜单一</li>
</ul>
</div>
</li>
<li > <a href="">周年</a></li>
</ul>
</div>
</div>
</div>
<div class="body">
<div class="content">
<div class="left">左边</div>
<div class="right">右边</div>
</div>
</div>
</body>
<style type="text/css">
body{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
color: #FFF;
font-weight: 100;
font-size: 32px;
padding: 0;
margin: 0;
text-shadow: 0 0 10px #639c90, 0 0 20px #6c938f, 0 0 30px #6d7a69;
}
ul{
list-style: none;
}
.body{
width: 1200px;
min-height: 800px;
background-color: #8888bb;
margin: 0 auto;
}
.header{
background-color: #afb959;
height: 80px;
}
.header .content{
width: 1200px;
height: 80px;
margin: 0 auto;
}
.header .content .logo{
width: 200px;
height: 80px;
}
.header .content .logo img{
width: 165px;
}
.header .nav .navFirst{
padding: 0px;
margin: 0 auto;
width: 400px;
height: 80px;
list-style: none;
display: flex;
flex-direction: row;
justify-content: space-around;
line-height: 80px;
}
#triangle-up {
width: 0px;
height: 0px;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 10px solid red;
position: relative;
left: 45px;
}
.header .nav > .navFirst> li{
display: flex;
flex-direction: column;
position: relative;
width: 100px;
height: 80px;
background-color: yellow;
text-align: center;
}
.header .nav > .navFirst> li >.suv{
z-index: 100;
position:relative;
list-style: none;
text-align: left;
display: none;
}
.nav .navFirst li:hover .suv{
display: block;
}
.header .nav > .navFirst> li ul{
list-style: none;
background-color: yellow;
text-align: left;
}
.header .nav > .navFirst> li >.suv >ul li{
margin:0px;
padding:0px;
width: 100px;
text-align: left;
margin-left: -40px;
text-align: center;
}
.content{
display: flex;
flex-direction: row;
}
.content .left{
width: 800px;
min-height: 800px;
background-color: #5cb9bb;
}
.content .right{
width: 400px;
min-height: 800px;
background-color: #a3b2bb;
}
</style>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wanghefei/MCMS.git
git@gitee.com:wanghefei/MCMS.git
wanghefei
MCMS
MCMS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385