jquery实现多级文件夹折叠菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:jquery实现多级文件夹折叠菜单效果代码

代码标签: 文件夹 折叠 菜单 效果

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

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

<head>

    <meta charset="UTF-8">


    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            padding: 100px;
            background: white;
            font-size: 100%;
            font-family: "Arial";
        }
        input {
            font-size: 1em;
        }
        ol.tree {
            padding-left: 30px;
        }
        li {
            list-style-type: none;
            color: #fff;
            position: relative;
            margin-left: -15px;
        }
        li label {
            padding-left: 37px;
            cursor: pointer;
            background: url("//repo.bfw.wiki/bfwrepo/image/5fb5d447c7bbd.png") no-repeat 15px 2px;
            display: block;
        }
        li input {
            width: 1em;
            height: 1em;
            position: absolute;
            left: -0.5em;
            top: 0;
            opacity: 0;
            cursor: pointer;
        }
        li input + ol {
            height: 1em;
            margin: -16px 0 0 -44px;
            background: url("//repo.bfw.wiki/bfwrepo/image/5fb5d4972cdd7.png") no-repeat 40px 0;
        }
        li input + ol > li {
            display: none;
            margin-le.........完整代码请登录后点击上方下载按钮下载查看

网友评论0