zoukankan      html  css  js  c++  java
  • easyui 布局标题纵向排列

        (function($){
                     var buttonDir = {north:'down',south:'up',east:'left',west:'right'};
                        $.extend($.fn.layout.paneldefaults,{
                            onBeforeCollapse:function(){
                                var popts = $(this).panel('options');
                                var dir = popts.region;
                                var btnDir = buttonDir[dir];
                                if(!btnDir) return false;
                    
                                setTimeout(function(){
                                    var pDiv = $('.layout-button-'+btnDir).closest('.layout-expand').css({
                                        textAlign:'center',lineHeight:'18px',fontWeight:'bold'
                                    });
                    
                                    if(popts.title){
                                         var vtitle = popts.title;
                                        if(dir == "east" || dir == "west"){
                                            var vTitle = popts.title.split('').join('<br/>');
                                            pDiv.find('.panel-body').html(vTitle);
                                        }else{
                                            $('.layout-button-'+btnDir).closest('.layout-expand').find('.panel-title')
                                            .css({textAlign:'left'})
                                            .html(vTitle)
                                        }
                                         
                                    }   
                                },100);
                                 
                            }
                        });
                    })(jQuery);

  • 相关阅读:
    PHP中feof()函数的猜测
    PHP curl函数模拟爬虫(操作cookie)
    django发音
    Nginx出现“413 Request Entity Too Large”错误解决方法
    Python开发利器WingIDE破解方法
    开启Apache mod_rewrite
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    python 正则学习
    php定时执行任务
    命令行CURL教程[转载]
  • 原文地址:https://www.cnblogs.com/ckaifeng/p/5018335.html
Copyright © 2011-2022 走看看