zoukankan      html  css  js  c++  java
  • Extjs4.2 tabPosition left 相关

    解决tabPosition:left 标签的方向问题
     
    <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme() + "://"
                + request.getServerName() + ":" + request.getServerPort()
                + path + "/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
        <head>
            <title>測試</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
            <script type="text/javascript" src="/app/ext-4.2.1/ext-all.js"></script>
            <script type="text/javascript" src="/app/ext-4.2.1/ext-lang-zh_CN.js"></script>
            <link rel="stylesheet" type="text/css" href="/app/ext-4.2.1/resources/ext-theme-neptune/ext-theme-neptune-all-debug.css" />
    
            <style type="text/css">
                .verticaltab .x-tab-wrap {
                    position: absolute;
                    display: block;
                    padding-left: 20px;
                    transform: rotate(90deg);
                }
    
                .verticaltab .x-tab-button {
                    position: absolute;
                    display: block;
                    padding-left: 0px;
                    padding-top: 2px;
                }
                
            </style>
            <script type="text/javascript">
            Ext.onReady(function(){
            Ext.define('VerticalPanel', {
                extend : 'Ext.tab.Panel',
                cls : 'verticaltab',
                // 添加tabbar,修改 背景的宽度
                tabBar : {
                    width : 100,
                    minTabWidth : 100,
                    maxTabWidth : 100,
                    height : 15,
                    orientation : 'vertical'
                },
    
                tabPosition : 'left',// 竖形排列
                width : '100%',
                height : 300,
                enableTabScroll : true,
                activeTab : 0,
                items : [ {
                    title : 'panel01',
                    html : '11111'
                }, {
                    title : 'panel02',
                    html : '2222222'
                }, {
                    title : 'panel03',
                    html : '333333333'
                } ]
            });
                    var p = Ext.create('VerticalPanel');
                    p.render('content');
                });
            </script>
        </head>
        <body>
            <div id="content"></div>
        </body>
    </html>
    View Code

  • 相关阅读:
    Vue.js
    Vue.js
    Vue.js
    Vue.js
    webpack(1)
    webpack(2)
    babel-loader7和babel8版本的问题
    [JZOJ4274] 终章-剑之魂
    [JZOJ427] 圣章-精灵使的魔法语
    BZOJ题表(红色表示已完成)
  • 原文地址:https://www.cnblogs.com/shinubi/p/4934363.html
Copyright © 2011-2022 走看看