zoukankan      html  css  js  c++  java
  • Extjs4.1 注意事项

    使用bodyStyle的时候需要在数字后加px

    bodyStyle: 'padding:20px 0px 0px 30px'

     

    自定义tab的样式

    可以在page中加入css定义,按照就近原则浏览器会先使用page中的css

    <style type="text/css">
           /*去掉tab的 title的背景*/
           .x-tab-bar {
               position: relative;
               background-color: transparent;
               background-image: none !important;
           }

           .x-tab-bar-body {
               border-style: none !important;
               position: relative;
               border-color: transparent;
               z-index: 2;
               zoom: 1;
           }

       </style>

    extjs4.1 在FF浏览器中tab title中显示中文当字体大小设12px的时候字体下面会有部分无法显示

    这是需要设置

    .x-tab button {
       background: none;
       border: 0;
       padding: 0;
       margin: 0;
       -webkit-appearance: none;
       -moz-appearance:none;
       font-size: 12px;
       font-weight: normal;
       font-family:宋体,tahoma, arial, verdana, sans-serif; //加入宋体
       color: #416da3;
       outline: 0 none;
       overflow-x: visible; }

    Ext.data.Model 中的modified属性放的是更改的store的内容,field的数据是最后一次commit后的数据

    在编辑完Grid后要记得使用

    grid.getPlugin(pluginid).completeEdit();

    不然最后一个单元格的数据不一定能被正确读取

  • 相关阅读:
    JS实战 · 表单验证
    JS实战 · 仿css样式选择器
    JS实战 ·  收缩菜单表单布局
    cookie自动登录的实现
    redis 3.2.5单机版安装、使用、systemctl管理Redis启动、停止、开机启动
    yum问题解决
    配置yum镜像源
    shell笔记
    CCIE总结:路由器、交换机
    云主机如何挂在磁盘
  • 原文地址:https://www.cnblogs.com/wallis0922/p/2834201.html
Copyright © 2011-2022 走看看