css二级菜单效果

代码语言:html

所属分类:菜单导航

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>

    <style>
        .menu {
            width: 100px;
            background: white;
            padding: 5px;
        }
        .menu ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .menu ul li {
           
            position: relative;
        }
        .menu ul li a {
            padding: 5px;
            display: inline-block;
            width: 100%;
           
        }
        .menu li:hover a {
            background: #5dd5c8;
            color: white;
        }
        .menu li:hover .submenu {
            display: block;
            background: white;
        }
        .submenu {
            padding: 10px;
            border: 1px solid #5dd5c8;
            top: 0;
            left: 110px;
            position: absolute;
            display: none;
            width: 200px;
            height: 400px;
        }
    </style>
</head>
<body>
    <div class="menu">
        <ul>

            <li><a>菜单一&.........完整代码请登录后点击上方下载按钮下载查看

网友评论0