Sidenav 左侧手机/PC侧边栏效果,支持各种浏览器
XML/HTML Code
- <div class="col s12 m8 offset-m1 xl7 offset-xl1">
- <div id="structure" class="section scrollspy">
- <a href="#" data-target="slide-out" class="sidenav-trigger btn">点击打开侧边栏</a>
- <ul id="slide-out" class="sidenav" style="transform: translateX(-105%);">
- <li>
- <div class="user-view">
- <div class="background"> <img src="css/office.jpg"> </div>
- <a href="#user"> <img class="circle" src="css/yuna.jpg"> </a> <a href="#name"> <span class="white-text name">John Doe</span> </a> <a href="#email"> <span class="white-text email">jdandturk@gmail.com</span> </a> </div>
- </li>
- <li> <a href="#!"> <i class="material-icons">cloud</i>First Link With Icon</a> </li>
- <li> <a href="#!">Second Link</a> </li>
- <li>
- <div class="divider"></div>
- </li>
- <li> <a class="subheader">Subheader</a> </li>
- <li> <a class="waves-effect" href="#!">Third Link With Waves</a> </li>
- </ul>
- <br>
- </div>
- </div>
原文地址:http://www.freejs.net/article_daohangcaidan_653.html