菜单推入推出效果

代码语言:html

所属分类:菜单导航

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

<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* General styles for all menus */
        .cbp-spmenu {
            background: #47a3da;
            position: fixed;
        }

        .cbp-spmenu h3 {
            color: #afdefa;
            font-size: 1.9em;
            padding: 20px;
            margin: 0;
            font-weight: 300;
            background: #0d77b6;
        }

        .cbp-spmenu a {
            display: block;
            color: #fff;
            font-size: 1.1em;
            font-weight: 300;
        }

        .cbp-spmenu a:hover {
            background: #258ecd;
        }

        .cbp-spmenu a:active {
            background: #afdefa;
            color: #47a3da;
        }

        /* Orientation-dependent styles for the content of the menu */

        .cbp-spmenu-vertical {
            width: 240px;
            height: 100%;
            top: 0;
            z-index: 1000;
        }

        .cbp-spmenu-vertical a {
            border-bottom: 1px solid #258ecd;
            padding: 1em;
        }

        .cbp-spmenu-horizontal {
            width: 100%;
            height: 150px;
            left: 0;
            z-index: 1000;
            overflow: hidden;
        }

        .cbp-spmenu-horizontal h3 {
            height: 100%;
            width: 20%;
            float: left;
        }

        .cbp-spmenu-horizontal a {
            float: left;
            width: 20%;
            padding: 0.8em;
            border-left: 1px solid #258ecd;
        }

        /* Vertical menu that slides from the left or right */

        .cbp-spmenu-left {
            left: -240px;
        }

        .cbp-spmenu-right {
            right: -240px;
        }

        .cbp-spmenu-left.cbp-spmenu-open {
            left: 0px;
        }

        .cbp-spmenu-right.cbp-spmenu-open {
            right: 0px;
        }

        /* Horizontal menu that slides from the top or bottom */

        .cbp-spmenu-top {
            top: -150px;
        }

        .cbp-spmenu-bottom {
            bottom: -150px;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0