菜鸟学堂
在线运行
源代码
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI 菜单(Menu) - 图标</title> <link rel="stylesheet" href="//apps.bdimg.com/libs/jqueryui/1.10.4/css/jquery-ui.min.css"> <script src="//apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script> <script src="//apps.bdimg.com/libs/jqueryui/1.10.4/jquery-ui.min.js"></script> <link rel="stylesheet" href="jqueryui/style.css"> <script> $(function() { $( "#menu" ).menu(); }); </script> <style> .ui-menu { width: 150px; } </style> </head> <body> <ul id="menu"> <li><a href="#"><span class="ui-icon ui-icon-disk"></span>保存</a></li> <li><a href="#"><span class="ui-icon ui-icon-zoomin"></span>放大</a></li> <li><a href="#"><span class="ui-icon ui-icon-zoomout"></span>缩小</a></li> <li class="ui-state-disabled"><a href="#"><span class="ui-icon ui-icon-print"></span>打印...</a></li> <li> <a href="#">播放</a> <ul> <li><a href="#"><span class="ui-icon ui-icon-seek-start"></span>上一个</a></li> <li><a href="#"><span class="ui-icon ui-icon-stop"></span>停止</a></li> <li><a href="#"><span class="ui-icon ui-icon-play"></span>播放</a></li> <li><a href="#"><span class="ui-icon ui-icon-seek-end"></span>下一个</a></li> </ul> </li> </ul> </body> </html>
运行结果
在线运行
菜鸟学堂 edu.jb51.net