jquery实现横向树形可折叠菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:jquery实现横向树形可折叠菜单效果代码

代码标签: 树形 可折叠 菜单 效果

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

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        ul {
            margin: 0;
            padding: 0;
            list-style: none;
            position: relative;
        }
        .wrapper {
            max-width: 800px;
            width: 100%;
            height: 600px;
            background-color: #eeeeee;
            margin: 0 auto;
            padding: 10px;
            display: flex;
            align-items: center;
        }
        .wrapper li {
            width: 100px;
            text-align: center;
            position: relative;
        }
        .wrapper li::before {
            position: absolute;
            content: "";
            width: 100px;
            height: 2px;
            background-color: #333333;
            left: 50%;
            transform: translateX(-50%);
            top: 15px;
        }
        .circle {
            height: 30px;
            width: 30px;
            display: block;
            background-color: #8cef46;
            border-radius: 50%;
            position: relative;
            margin: 0 auto;
            font-size: 12px;
            line-height: 30px;
            cursor: pointer;
        }
        .children {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            left: 100%;
            height: 300px;
            display: flex;
      .........完整代码请登录后点击上方下载按钮下载查看

网友评论0