css实现一个竖的手风琴折叠菜单效果代码

代码语言:html

所属分类:菜单导航

代码描述:css实现一个竖的手风琴折叠菜单效果代码

代码标签: css 手风琴 折叠 菜单

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">



    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/font-awesome-4.7.0/css/font-awesome.min.css">


    <style>
        @import url(https://fonts.googleapis.com/css?family=Roboto:400,700,300);
        ul {
          padding: 0;
          margin: 0;
        }
        
        li {
          list-style-type: none;
        }
        
        input[type=radio] {
          display: none;
        }
        
        label {
          cursor: pointer;
        }
        
        ::-webkit-scrollbar {
          display: none;
        }
        
        body .swanky {
          margin: auto;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
        }
        
        body {
          height: 100vh;
          font-weight: 500;
          font-family: "Roboto", sans-serif;
          background: linear-gradient(135deg, #8254EA 0%, #E86DEC 100%);
          -webkit-font-smoothing: antialiased;
          font-size: 12px;
        }
        body .swanky {
          perspective: 600px;
          width: 700px;
          position: absolute;
          margin: auto;
          height: 360px;
        }
        body .swanky_title {
          float: right;
          text-align: left;
          width: 400px;
          color: white;
          position: relative;
          top: 70px;
        }
        body .swanky_title_.........完整代码请登录后点击上方下载按钮下载查看

网友评论0