纯css实现悬浮竖条导航菜单效果
代码语言:html
所属分类:菜单导航
代码描述:纯css实现悬浮竖条导航菜单效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="http://repo.bfw.wiki/bfwrepo/css/aqua.min.css">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #f7f7fd;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: black;
}
:root {
--grey-color: #7f8c8d;
}
ul {
padding: 0;
margin: 0;
list-style-type: none;
}
a {
text-decoration: none;
}
.menu-hover-fill li {
position: relative;
}
.menu-hover-fill li::before {
position: absolute;
content: "";
top: 0;
left: -1rem;
width: 0.25rem;
height: 100%;
background: var(--menu-link-act.........完整代码请登录后点击上方下载按钮下载查看
网友评论0