欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

jQuery EasyUI 選項(xiàng)卡面板tabs的使用實(shí)例講解

 更新時(shí)間:2017年12月25日 08:37:18   投稿:jingxian  
下面小編就為大家分享一篇jQuery EasyUI 選項(xiàng)卡面板tabs的使用實(shí)例講解,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過(guò)來(lái)看看吧

1、 對(duì)選項(xiàng)卡面板區(qū)域 div 設(shè)置 class=”easyui-tabs”

2、 對(duì)選項(xiàng)卡面板區(qū)域添加多個(gè) div,每個(gè) div 就是一個(gè)選項(xiàng)卡(每個(gè)面板一定設(shè)置 title)

3、 設(shè)置面板 fit 為 true ,自適應(yīng)父容器大小

4、 設(shè)置選項(xiàng)卡 closable 為 true ,添加可關(guān)閉按鈕

5、通過(guò)超鏈接,點(diǎn)擊后,添加新的選項(xiàng)卡

語(yǔ)法: 頁(yè)面對(duì)象.easyui 插件(方法名, 參數(shù)) ;

<!DOCTYPE html>
<html>
 <head>
 <meta charset="UTF-8">
 <title>easyui-選項(xiàng)卡面板tabs的使用</title>
 <!-- 導(dǎo)入jquery核心類庫(kù) -->
 <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
 <!-- 導(dǎo)入easyui類庫(kù) -->
 <link id="easyuiTheme" rel="stylesheet" type="text/css" href="../js/easyui/themes/default/easyui.css" rel="external nofollow" >
 <link rel="stylesheet" type="text/css" href="../js/easyui/themes/icon.css" rel="external nofollow" >
 <link rel="stylesheet" type="text/css" href="../css/default.css" rel="external nofollow" >
 <script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
 <script type="text/javascript">
  //頁(yè)面加載后執(zhí)行
  $(function(){
  //對(duì)鏈接綁定點(diǎn)擊事件
  $("#nwtxxb").click(function(){
   //添加一個(gè)新的選項(xiàng)卡
   $("#mytabs").tabs('add',{
   title:'CSDN博客',
   content:'學(xué)IT,你我他學(xué)習(xí)吧'
   });
  });
  });
 </script>
 </head>
 <body class="easyui-layout">
 <div data-options="region:'north',title:'你我他學(xué)習(xí)吧-學(xué)習(xí)Java的好博客!'" style="height:100px"></div>
 <div data-options="region:'west',title:'菜單導(dǎo)航'" style="width:200px">
  <!--折疊面板-->
  <div class="easyui-accordion" data-options="fit:true">
  <div data-options="title:'基礎(chǔ)菜單'">
   <a href="javascript:void(0)" rel="external nofollow" id="nwtxxb">你我他學(xué)習(xí)吧</a>
  </div>
  <div data-options="title:'系統(tǒng)菜單'">你我他學(xué)習(xí)吧</div>
  </div>
 </div>
 <div data-options="region:'center',title:'中部區(qū)域'">
  <!--選項(xiàng)卡面板-->
  <div id="mytabs" class="easyui-tabs" data-options="fit:true">
  <div data-options="title:'CSDN博客',closable:true">學(xué)Java后臺(tái)編程,就來(lái)你我他學(xué)習(xí)吧!</div>
  <div data-options="title:'博客園',closable:true">學(xué)前端開發(fā),就來(lái)你我他學(xué)習(xí)吧!</div>
  </div>
 </div>
 <div data-options="region:'east',title:'東部區(qū)域'" style="width:100px"></div>
 <div data-options="region:'south',title:'南部區(qū)域'" style="height:100px"></div>
 </body>
</html>

以上這篇jQuery EasyUI 選項(xiàng)卡面板tabs的使用實(shí)例講解就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評(píng)論