高效Web开发的10个jQuery代码片段
411
2024-02-24
本文是为大家分享了Jquery easyUi手风琴效果,供大家参考,具体内容如下
效果图:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Basic Accordion - jQuery EasyUI Demo</title> <link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/themes/icon.css"> <link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1901/demo.css"> <script type="text/javascript" src="http://www.gimoo.net/t/jquery.min.js"></script> <script type="text/javascript" src="http://www.gimoo.net/t/jquery.easyui.min.js"></script> </head> <body> <h2>Basic Accordion</h2> <p>单击面板头部显示内容.</p> <div style="margin:20px 0 10px 0;"></div> <div class="easyui-accordion" style="width:500px;height:300px;"> <div title="About" data-options="iconCls:'icon-ok'" style="overflow:auto;padding:10px;"> <h3 style="color:#0099FF;">手风琴</h3> <p>手风琴组件.</p> </div> <div title="Help" data-options="iconCls:'icon-help'" style="padding:10px;"> <p>The accordion allows you to provide multiple panels and display one or more at a time. Each panel has built-in support for expanding and collapsing. Clicking on a panel header to expand or collapse that panel body. The panel content can be loaded via ajax by specifying a 'href' property. Users can define a panel to be selected. If it is not specified, then the first panel is taken by default.</p> </div> <div title="菜单" data-options="iconCls:'icon-search'" style="padding:10px;"> <ul class="easyui-tree"> <li> <span>食物</span> <ul> <li> <span>水果</span> <ul> <li>苹果</li> <li>橙子</li> </ul> </li> <li> <span>蔬菜</span> <ul> <li>西红柿</li> <li>胡萝卜</li> <li>洋白菜</li> <li>土豆</li> <li>莴苣</li> </ul> </li> </ul> </li> </ul> </div> </div> </body> </html>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持绿夏网。
#免责声明#
本站[绿夏技术导航]提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序或内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件[admin@lxwl520.com]与我们联系进行删除处理。敬请谅解!