加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – 创建空的文件空间

发布时间:2020-12-13 17:14:25 所属栏目:PHP教程 来源:网络整理
导读:我有这个菜单: items:[ { xtype: 'form',id: 'searchPanel',title: 'Search',collapsible: true,bodyPadding: 10,height: 210,buttonAlign: 'left',defaults: { width: 400,labelWidth: 120,allowBlank: true,enableKeyEvents: true },layout: { type: 'tab
我有这个菜单:

items:[      
{
    xtype: 'form',id: 'searchPanel',title: 'Search',collapsible: true,bodyPadding: 10,height: 210,buttonAlign: 'left',defaults: {
        width: 400,labelWidth: 120,allowBlank: true,enableKeyEvents: true        
    },layout: {
        type: 'table',columns: 2
    },items: [
        {
            xtype: 'textfield',name: 'txtFltrSiteName',fieldLabel: 'Site name or alias',id: 'txtFltrSiteName'
        },{
            xtype: 'textfield',name: 'txtDiskCost',fieldLabel: 'Disk cost',id: 'txtDiskCost',style: 'margin-left: 100px;'
        },name: 'txtFltrProjectName',fieldLabel: 'Project name',id: 'txtFltrProjectName'
        },// many other fields

并且chackboxes和文本字段具有不同的宽度,因此它看起来很丑陋.
所以问题是:
如何制作空的< td>在这种形式?
例如,我想要6-2项:

----------
| 1  | 1 |
| 2  | 2 |
| 3  |   |
| 4  |   |
|..etc...|
----------

解决方法

只需隐藏输入.
像这样:

{
    xtype: 'hidden',name: 'hidden1',id: 'hidden1'
},

这将使< td>列,但它将是空的因为它将被隐藏输入.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读