標籤:plain string function head keyword 工具列 控制 number ber
CSS載入
<div class="easyui-tabs" style="width: 400px;height: 250px"> <div title="Tab1" data-options="closable:true"> tab1 </div> <div title="Tab2" data-options="closable:true"> tab2 </div> <div title="Tab3" data-options="iconCls:‘icon-reload‘,closable:true"> tab3 </div></div>JS載入<div id="box" style="width: 400px;height: 250px"> <div title="Tab1" data-options="closable:true"> tab1 </div> <div title="Tab2" data-options="closable:true"> tab2 </div> <div title="Tab3" data-options="iconCls:‘icon-reload‘,closable:true"> tab3 </div></div> <script> $(function () { $(‘#box‘).tabs({ // 選項卡容器寬度 width : 500, // 項卡容器高度 height: 400, // 是否不顯示控制台背景。 plain : false, // 選項卡是否將鋪滿它所在的容器 fit : false, // 是否顯示選項卡容器邊框 border : true, // 選項卡捲軸每次滾動的像素值 scrollIncrement : 200, // 每次滾動動畫持續的時間 scrollDuration : 400, // 工具列添加在選項卡面板頭的左側或右側 tools:[{ iconCls : ‘icon-add‘, handler : function () { alert(‘添加!‘); }, }], // 工具列位置 toolPosition : ‘left‘, // 選項卡位置 tabPosition : ‘left‘, // 選項卡標題寬度,在 tabPosition 屬性設定為‘left‘或‘right‘的時候才有效 headerWidth : 300, // 標籤條的寬度 tabWidth : 250, // 標籤條的高度 tabHeight : 25, // 初始化選中一個 tab 頁, 從0開始 selected : 2, // 是否顯示 tab 網頁標題 showHeader: true }) ; });</script>
jquery easyui 選項卡