1. 程式人生 > >easyU之tabs選項卡

easyU之tabs選項卡

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Tabs(選項卡)</title>
    <meta http-equiv="keywords" content="學習,IT學習,好好學習">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  
      <!-- 引入css檔案,不限順序 
--> <link rel="stylesheet" href="../themes/default/easyui.css" type="text/css"></link> <link rel="stylesheet" href="../themes/icon.css" type="text/css"></link> <!-- 引入js檔案,有順序限制 --> <script type="text/javascript" src="../js/jquery.min.js"></script
> <script type="text/javascript" src="../js/jquery.easyui.min.js"></script> <!-- 所有的css檔案和的有的js檔案位置不限 --> </head> <body> <!-- 容器 --> <div id="tabsID" class="easyui-tabs" style="width:500px;height:250px;"
data-options="plain:false,fit:false,border:true,tools:[ { iconCls:'icon-add', handler:function(){ alert('新增') } }, { iconCls:'icon-save', handler:function(){ alert('儲存') } } ],selected:-1"> <!-- 選項卡 --> <div title="標題1" style="padding:20px"> tab1<br/> </div> <div title="標題2" data-options="closable:true" style="overflow:auto;padding:20px;"> tab2 </div> <div title="標題3" data-options="iconCls:'icon-reload',closable:true" style="padding:20px;"> tab3 </div> </div> </body> </html>