如何实现AmazeUI折叠面板
作者
这篇文章主要介绍了如何实现AmazeUI折叠面板,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。
Amaze UI 是一个针对 HTML 5 开发的轻量级、模块化、移动优先的跨屏前端框架,通过拆分、封装了一些常用的网页组件,比如轮播图框、文字框等等组件,让前端开发者只用便可以将这些跨屏的组件写入自己的网页中,而不需要自己在开发的过程中重写一遍。
<!doctypehtml> <htmlclass="no-js"> <head> <metacharset="utf-8"> <metahttp-equiv="X-UA-Compatible"content="IE=edge"> <metaname="description"content=""> <metaname="keywords"content=""> <metaname="viewport"content="width=device-width,initial-scale=1"> <title>折叠面板</title> <metaname="renderer"content="webkit"> <metahttp-equiv="Cache-Control"content="no-siteapp"/> <linkrel="icon"type="image/png"href="assets/i/favicon.png"> <metaname="mobile-web-app-capable"content="yes"> <linkrel="icon"sizes="192x192"href="assets/i/app-icon72x72@2x.png"> <metaname="apple-mobile-web-app-capable"content="yes"> <metaname="apple-mobile-web-app-status-bar-style"content="black"> <metaname="apple-mobile-web-app-title"content="AmazeUI"/> <linkrel="apple-touch-icon-precomposed"href="assets/i/app-icon72x72@2x.png"> <metaname="msapplication-TileImage"content="assets/i/app-icon72x72@2x.png"> <metaname="msapplication-TileColor"content="#0e90d2"> <linkrel="stylesheet"href="assets/css/amazeui.min.css"> </head> <bodystyle="margin:50px;"> <!--折叠面板--> <divclass="am-panel-group"id="accordion"> <divclass="am-panelam-panel-default"> <divclass="am-panel-hd"> <h5class="am-panel-title"data-am-collapse="{parent:'#accordion',target:'#do-not-say-1'}"> 标题 </h5> </div> <divid="do-not-say-1"class="am-panel-collapseam-collapseam-in"> <divclass="am-panel-bd"> 阅谁问君诵,水落清香浮 </div> </div> </div> <divclass="am-panelam-panel-default"> <divclass="am-panel-hd"> <h5class="am-panel-title"data-am-collapse="{parent:'#accordion',target:'#do-not-say-2'}"> 标题 </h5> </div> <divid="do-not-say-2"class="am-panel-collapseam-collapse"> <divclass="am-panel-bd"> 阅谁问君诵,水落清香浮 </div> </div> </div> <divclass="am-panelam-panel-default"> <divclass="am-panel-hd"> <h5class="am-panel-title"data-am-collapse="{parent:'#accordion',target:'#do-not-say-3'}"> 标题 </h5> </div> <divid="do-not-say-3"class="am-panel-collapseam-collapse"> <divclass="am-panel-bd"> 阅谁问君诵,水落清香浮 </div> </div> </div> </div> <!--折叠菜单--> <buttonclass="am-btnam-btn-primary"data-am-collapse="{target:'#collapse-nav'}">Menu<iclass="am-icon-bars"></i></button> <nav> <ulid="collapse-nav"class="am-navam-collapse"> <li><ahref="">开始使用</a></li> <li><ahref="">CSS介绍</a></li> <liclass="am-active"><ahref="">JS介绍</a></li> <li><ahref="">功能定制</a></li> </ul> </nav> <!--折叠列表--> <ulclass="am-listadmin-sidebar-list"id="collapase-nav-1"> <liclass="am-panel"> <adata-am-collapse="{parent:'#collapase-nav-1'}"href="#/"><iclass="am-icon-homeam-margin-left-sm"></i>首页</a> </li> <liclass="am-panel"> <adata-am-collapse="{parent:'#collapase-nav-1',target:'#user-nav'}"> <iclass="am-icon-usersam-margin-left-sm"></i>人员管理<iclass="am-icon-angle-rightam-fram-margin-right"></i> </a> <ulclass="am-listam-collapseadmin-sidebar-sub"id="user-nav"> <li><ahref="#/userAdd"><iclass="am-icon-useram-margin-left-sm"></i>添加人员</a></li> <li><ahref="#/userList/0"><iclass="am-icon-useram-margin-left-sm"></i>人员列表</a></li> </ul> </li> <liclass="am-panel"> <adata-am-collapse="{parent:'#collapase-nav-1',target:'#company-nav'}"> <iclass="am-icon-tableam-margin-left-sm"></i>单位(部门)管理<iclass="am-icon-angle-rightam-fram-margin-right"></i> </a> <ulclass="am-listam-collapseadmin-sidebar-sub"id="company-nav"> <li><ahref="#/companyAdd"><spanclass="am-icon-tableam-margin-left-sm"></span>添加单位(部门)</a></li> <li><ahref="#/companyList/0"><spanclass="am-icon-tableam-margin-left-sm"></span>单位(部门)列表</a></li> </ul> </li> <liclass="am-panel"> <adata-am-collapse="{parent:'#collapase-nav-1',target:'#role-nav'}"> <iclass="am-icon-tableam-margin-left-sm"></i>角色管理<iclass="am-icon-angle-rightam-fram-margin-right"></i> </a> <ulclass="am-listam-collapseadmin-sidebar-sub"id="role-nav"> <li><ahref="#/roleAdd"><spanclass="am-icon-tableam-margin-left-sm"></span>添加角色</a></li> <li><ahref="#/roleList/0"><spanclass="am-icon-tableam-margin-left-sm"></span>角色列表</a></li> </ul> </li> </ul> <!--[if(gteIE9)|!(IE)]><!--> <scriptsrc="assets/js/jquery.min.js"></script> <!--<![endif]--> <!--[iflteIE8]> <scriptsrc="assets/ie8/jquery.min.js"></script> <scriptsrc="assets/ie8/modernizr.js"></script> <scriptsrc="assets/js/amazeui.ie8polyfill.min.js"></script> <![endif]--> <scriptsrc="assets/js/amazeui.min.js"></script> </body> </html>
感谢你能够认真阅读完这篇文章,希望小编分享的“如何实现AmazeUI折叠面板”这篇文章对大家有帮助,同时也希望大家多多支持恰卡编程网,关注恰卡编程网行业资讯频道,更多相关知识等着你来学习!
目录
推荐阅读
0 条评论
本站已关闭游客评论,请登录或者注册后再评论吧~