星空网 > 软件开发 > 网页设计

html5手机端的点击弹出侧边滑动菜单代码

效果预览:http://hovertree.com/texiao/html5/19/

本效果适用于移动设备,可以使用手机等浏览效果。

源码下载:http://hovertree.com/h/bjaf/mwvn0mxi.htm

本实例用到了toggleClass方法,请参考:http://hovertree.com/h/bjaf/attributes_toggleclass.htm

代码如下:

 1 <!doctype html> 2 <html lang="zh"> 3 <head> 4 <meta charset="UTF-8"> 5 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 7 <title>jQuery弹出侧边栏滑动菜单 - 何问起</title><base target="_blank" /> 8 <link rel="stylesheet" href="http://hovertree.com/texiao/html5/19/css/reset.css"> 9 <link rel="stylesheet" href="http://hovertree.com/texiao/html5/19/css/style.css">10 11 <script language="javascript" src='/images/loading.gif' data-original="http://hovertree.com/ziyuan/jquery/jquery-2.2.0.min.js"></script>12 <script language="javascript" src='/images/loading.gif' data-original="js/main.js"></script>13 <!--[if IE]>14 <script src='/images/loading.gif' data-original="http://hovertree.com/texiao/html5/4/html5shiv.min.js"></script>>15 <![endif]-->16 </head>17 <body>18 19 <main>20 <header class="header">21 <h1>jQuery弹出侧边栏滑动菜单 <span>A Full-Screen Pushing Navigation</span></h1>22 <p>A full page menu, that replaces the current content by pushing it off the screen.</p>23 <p><a href="http://hovertree.com/">首页</a> <a href="http://hovertree.com/texiao/">特效</a> <a href="http://hovertree.com/h/bjaf/manpingmenu.htm">原文</a>24 </p>25 </header>26 </main>27 28 <a href="#cd-nav" class="cd-nav-trigger">29 Menu30 <span class="cd-nav-icon"></span>31 <svg x="0px" y="0px" width="54px" height="54px" viewBox="0 0 54 54">32 <circle fill="transparent" stroke="#656e79" stroke-width="1" cx="27" cy="27" r="25" stroke-dasharray="157 157" stroke-dashoffset="157"></circle>33 </svg>34 </a>35 36 37 <div id="cd-nav" class="cd-nav">38 <div class="cd-navigation-wrapper">39 <div class="cd-half-block">40 <h2>导航菜单</h2>41 42 <nav>43 <ul class="cd-primary-nav">44 <li><a href="http://hovertree.com/h/bjaf/menulayer.htm" class="selected">我的</a></li>45 <li><a href="http://hovertree.com/h/bjaf/easysector.htm">内容</a></li>46 <li><a href="http://hovertree.com/h/bjaf/jqguding.htm">消息</a></li>47 <li><a href="http://hovertree.com/h/bjaf/csshouse.htm">模板</a></li>48 <li><a href="http://hovertree.com/hvtart/bjae/ipblia78.htm">设置</a></li>49 <li><a href="http://hovertree.com/h/bjaf/tcpip_addressing.htm">关于</a></li>50 </ul>51 </nav>52 </div>53 54 <div class="cd-half-block">55 <address>56 <ul class="cd-contact-info">57 <li><a href="mailto:hovertree@hovertree.com">hovertree@hovertree.com</a></li>58 <li>021-00000000</li>59 <li>60 <span>何问起</span>61 <span>hovertree.com</span>62 <span>keleyi菜单</span>63 </li>64 </ul>65 </address>66 </div>67 </div>68 </div>69 </body>70 </html>

更多特效:http://www.cnblogs.com/roucheng/p/texiao.html




原标题:html5手机端的点击弹出侧边滑动菜单代码

关键词:HTML

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

​运输保险​:https://www.goluckyvip.com/tag/15187.html
11street开店:https://www.goluckyvip.com/tag/15188.html
11street马来西亚:https://www.goluckyvip.com/tag/15189.html
代运营如何找:https://www.goluckyvip.com/tag/1519.html
11Street入驻:https://www.goluckyvip.com/tag/15190.html
1688跨境电商怎么做:https://www.goluckyvip.com/tag/15191.html
九月初新疆旅游服装搭配(新疆游玩必备衣服清单):https://www.vstour.cn/a/408257.html
黄果树瀑布景区景点 - 黄果树瀑布景区景点分布图:https://www.vstour.cn/a/408258.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流