<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>侧边栏</title> <meta name="renderer" content="webkit"> <meta http-equiv="Cache-Control" content="no-siteapp"/> <link rel="icon" type="image/png" href="assets/i/favicon.png"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Amaze UI"/> <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileColor" content="#0e90d2"> <link rel="stylesheet" href="assets/css/amazeui.min.css"> </head> <body> <!-- 链接触发器, href 属性为目标元素 ID --> <a href="#doc-oc-demo1" data-am-offcanvas>点击显示侧边栏</a> <!-- 侧边栏内容 --> <div id="doc-oc-demo1" class="am-offcanvas"> <div class="am-offcanvas-bar"> <div class="am-offcanvas-content"> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> </div> </div> </div> <!--[if (gte IE 9)|!(IE)]><!--> <script src="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[if lte IE 8 ]> <script src="assets/ie8/jquery.min.js"></script> <script src="assets/ie8/modernizr.js"></script> <script src="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <script src="assets/js/amazeui.min.js"></script> </body> </html>
效果图:
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>侧边栏</title> <meta name="renderer" content="webkit"> <meta http-equiv="Cache-Control" content="no-siteapp"/> <link rel="icon" type="image/png" href="assets/i/favicon.png"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Amaze UI"/> <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileColor" content="#0e90d2"> <link rel="stylesheet" href="assets/css/amazeui.min.css"> </head> <body> <!-- 按钮触发器, 需要指定 target --> <button class="am-btn am-btn-primary" data-am-offcanvas="{target: '#doc-oc-demo2', effect: 'push'}">点击显示侧边栏</button> <!-- 侧边栏内容 --> <div id="doc-oc-demo2" class="am-offcanvas"> <div class="am-offcanvas-bar"> <div class="am-offcanvas-content"> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> </div> </div> </div> <!--[if (gte IE 9)|!(IE)]><!--> <script src="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[if lte IE 8 ]> <script src="assets/ie8/jquery.min.js"></script> <script src="assets/ie8/modernizr.js"></script> <script src="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <script src="assets/js/amazeui.min.js"></script> </body> </html>
效果图:
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>侧边栏</title> <meta name="renderer" content="webkit"> <meta http-equiv="Cache-Control" content="no-siteapp"/> <link rel="icon" type="image/png" href="assets/i/favicon.png"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Amaze UI"/> <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileColor" content="#0e90d2"> <link rel="stylesheet" href="assets/css/amazeui.min.css"> </head> <body> <!-- 按钮触发器, 需要指定 target --> <button class="am-btn am-btn-success" data-am-offcanvas="{target: '#doc-oc-demo3'}">右侧显示边栏</button> <!-- 侧边栏内容 --> <div id="doc-oc-demo3" class="am-offcanvas"> <div class="am-offcanvas-bar am-offcanvas-bar-flip"> <div class="am-offcanvas-content"> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> </div> </div> </div> <!--[if (gte IE 9)|!(IE)]><!--> <script src="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[if lte IE 8 ]> <script src="assets/ie8/jquery.min.js"></script> <script src="assets/ie8/modernizr.js"></script> <script src="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <script src="assets/js/amazeui.min.js"></script> </body> </html>
效果图:
<!doctype html> <html class="no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>侧边栏</title> <meta name="renderer" content="webkit"> <meta http-equiv="Cache-Control" content="no-siteapp"/> <link rel="icon" type="image/png" href="assets/i/favicon.png"> <meta name="mobile-web-app-capable" content="yes"> <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="Amaze UI"/> <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png"> <meta name="msapplication-TileColor" content="#0e90d2"> <link rel="stylesheet" href="assets/css/amazeui.min.css"> </head> <body> <!-- 侧边栏内容 --> <div id="my-offcanvas" class="am-offcanvas"> <div class="am-offcanvas-bar"> <div class="am-offcanvas-content"> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> <p><a href="##">列表1</a></p> </div> </div> </div> <div style="margin: 50px 0 0 300px;"> <button class="am-btn am-btn-primary doc-oc-js" data-rel="open">打开侧边栏</button> <button class="am-btn am-btn-primary doc-oc-js" data-rel="close">关闭侧边栏</button> </div> <!--[if (gte IE 9)|!(IE)]><!--> <script src="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[if lte IE 8 ]> <script src="assets/ie8/jquery.min.js"></script> <script src="assets/ie8/modernizr.js"></script> <script src="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <script src="assets/js/amazeui.min.js"></script> <script> $(function() { var id = '#my-offcanvas'; var $myOc = $(id); $('.doc-oc-js').on('click', function() { $myOc.offCanvas($(this).data('rel')); }); $myOc.on('open.offcanvas.amui', function() { console.log(id + ' 打开了。'); }).on('close.offcanvas.amui', function() { console.log(id + ' 关闭了。'); }); }); </script> </body> </html>
效果图:
相关推荐
这是一款非常实用的Material Design风格侧边栏UI设计效果。该Material Design风格侧边栏支持4种侧边栏定位方式和4种不同的侧边栏主题效果。并且侧边栏的顶部还可以使用图片和颜色两种模式。
这是一款非常酷的谷歌Material Design风格侧边栏动画UI设计效果。这个特效涉及到Communication Design的知识。当用户用鼠标滑过侧边栏时,侧边栏显示出将要显示的页面的大概内容,这是一种非常直观与用户沟通的展现...
仿写的侧边栏功能,能点击,滑动进入侧边栏,侧边栏还和UINavigationController结合,实现多功能
这是一个实现侧边栏的Demo,适配了ios7
NULL 博文链接:https://onestopweb.iteye.com/blog/2276958
固定 侧边栏 滚动web html js
优雅的实现侧边栏Item页面切换,完全遵循 Material Design 设计思想。示例代码完全免费!!!
想要让导航栏、侧边栏变为公共页面,则要在App.vue页面中加入。假设已经有了Header.vue和Left.vue,这里就不贴出来了,App.vue代码如下: <!-- 其他页 --> <!-- 导航栏 --> <header></header...
软件名称:侧边栏 软件版本:V4.4.0 软件大小: 783KB 软件语言:中文 支持系统: 2.3+ 【软件介绍】 Sidebar Por能够带给你全新的Android多任务体验!是款快速、功能强大、可自定义性高的侧边滑出式托盘应用,允许...
折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧边栏,炫酷侧边栏 折叠效果侧...
这是一款效果非常炫酷的创意旋转式打开隐藏侧边栏UI界面设计。该侧边栏设计中,当用户点击侧边栏按钮的时候,整个页面会旋转一个角度,然后隐藏在页面下的侧边栏会被显示出来,效果非常的酷。
手机端和PC端都可以用的交互,侧边栏,侧滑效果,隐藏效果。
侧边栏圆角按纽导航菜单,绿色圆角按纽风格,简洁,适用于侧栏导航型网站!
wpf 侧边栏 能实现侧边面板的折叠展开 使用ExpandPanel
网站侧边栏可展开折叠jQuery导航
C#使用Panel实现动态侧边栏源码 功能介绍: 有时候发现界面的布局比较复杂,需要隐藏显示一部分内容需要使用动态侧边栏的方法实现,虽然可是使用第三方的控件,但是有时候也不需要那么麻烦,自己做了一个简单的, ...
bootstrap-vertical-menu是一款基于Bootstrap的CSS3响应式滑动侧边栏布局模板。该滑动侧边栏布局在大屏幕中以侧边栏的形式存在,在小屏幕设备中,菜单会被移动到屏幕的底部,只显示菜单的图标。
Win7侧边栏小工具Win7侧边栏小工具Win7侧边栏小工具
androidUI设计中,侧边栏是一种非常流行和常见的方式,现在我用碎片化实现了侧边栏。
bootstrap-collapsible-sidebar是一款基于Bootstrap网格系统的可折叠侧边栏特效。该特效通过Bootstrap网格系统,少量的CSS和jQuery代码来完成类似侧边栏面板的折叠效果。