我做的ext project 在 屏幕分辨率为 1024*768 的情况下powerOfAttApplication.superclass.constructor.call(this, {
labelAlign: "right",
buttonAlign: "right",
frame: true,
bodyStyle: "padding:0 0",
labelWidth: 150,
layout: "fit",
autoScroll: true,
overflow: 'hidden',
items: [{
title: '授权委托书申请信息',
xtype: 'fieldset',
collapsible: true,
autoHeight: true,
labelAlign: "right",
bodyStyle: "padding:0 0",
items: [{
layout: "column",
items: [{
columnWidth: 1,
layout: 'form',
defaultType: 'textfield',
items: [ this.powerOfAttAppLevel ]
},{
columnWidth: .5,
layout: 'form',
defaultType: 'textfield',
items: [this.powerOfAttAppLicensee,
this.powerOfAttAppSharesThePowOfAttorneys
]
},{
columnWidth: .5,
layout: 'form',
defaultType: 'textfield',
items: [this.powerOfAttAppLicenseeDuties ]
}]
}
出现了水平滚动条和垂直滚动条 请问怎么去掉水平滚动条呢?
labelAlign: "right",
buttonAlign: "right",
frame: true,
bodyStyle: "padding:0 0",
labelWidth: 150,
layout: "fit",
autoScroll: true,
overflow: 'hidden',
items: [{
title: '授权委托书申请信息',
xtype: 'fieldset',
collapsible: true,
autoHeight: true,
labelAlign: "right",
bodyStyle: "padding:0 0",
items: [{
layout: "column",
items: [{
columnWidth: 1,
layout: 'form',
defaultType: 'textfield',
items: [ this.powerOfAttAppLevel ]
},{
columnWidth: .5,
layout: 'form',
defaultType: 'textfield',
items: [this.powerOfAttAppLicensee,
this.powerOfAttAppSharesThePowOfAttorneys
]
},{
columnWidth: .5,
layout: 'form',
defaultType: 'textfield',
items: [this.powerOfAttAppLicenseeDuties ]
}]
}
出现了水平滚动条和垂直滚动条 请问怎么去掉水平滚动条呢?
labelAlign: "right",
buttonAlign: "right",
frame: true,
bodyStyle: "padding:0 0",
labelWidth: 150,
layout: "fit",
overflow-x: 'hidden',
autoScroll: true,
items: [{
title: '授权委托书申请信息',
xtype: 'fieldset',
collapsible: true,
autoHeight: true,
labelAlign: "right",
这样写完之后页面直接报错了
然后还要在整个页面加个样式
<style>
* html {overflow-x:hidden;}
body { overflow-x:hidden;}
</style>按理来讲body标签中加了style="overflow-x: hidden;"就可以去掉了,但是为什么不行了,那就是浏览器版本惹的祸,试试吧,100%可以的
JS:overflowX:'hidden'
labelAlign: "right",
buttonAlign: "right",
frame: true,
bodyStyle: "padding:0 0",
labelWidth: 150,
layout: "fit",
autoScroll: true,
overflowX:'hidden',
items: [{
title: '授权委托书申请信息',
xtype: 'fieldset',
在1024*768 情况下 还是不行 有水平滚动条
overflowX:'hidden',