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>
复制代码

 

posted on   LoaderMan  阅读(150)  评论(0编辑  收藏  举报

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

喜欢请打赏

扫描二维码打赏

了解更多

点击右上角即可分享
微信分享提示