<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>EasyUI 測試</title> <link rel="stylesheet" type="text/css" href="../jquery/easyui-themes/default/easyui.css"> <link rel="stylesheet" type="text/css" href="../jquery/easyui-themes/icon.css"> <script type="text/javascript" src="../jquery/jquery.js"></script> <script type="text/javascript" src="../jquery/jquery.easyui.min.js"></script> <script type="text/javascript" src="../jquery/easyui-lang-zh_TW.js"></script> </head> <body> <div id="panel" class="easyui-panel" title="MyPanel" style="width:300px;height:100px;padding:10px;" data-options="collapsible:true,closable:true,maximizable:true,minimizable:true"> <p>Hello World!</p> <p>Hello World!</p> <p>Hello World! Hello World! Hello World! Hello World! Hello World! </p> </div> <a href="#" class="easyui-linkbutton" id="mini" style="display:none">回復</a> <script language="javascript"> $(document).ready(function(){ $("#panel").panel({ onMinimize:function(){ $("#mini").css("display","inline"); } }); $("#mini").bind("click",function(){ $("#mini").css("display","none"); $("#panel").panel("open"); }); }); </script> </body> </html>