我做的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 ]
}]
}
出现了水平滚动条和垂直滚动条  请问怎么去掉水平滚动条呢?

解决方案 »

  1.   

    我这样写了之后不行啊powerOfAttApplication.superclass.constructor.call(this, {
    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",
    这样写完之后页面直接报错了
      

  2.   

    有overflow-x这方法? 试试看overflowx: 'hidden',看看
      

  3.   

    大哥,overflowx: 'hidden', 这个也不行 倒是不报错 看了页面没嘛效果
      

  4.   

    http://www.cnblogs.com/quzi/archive/2010/07/29/1788061.html全部的   滚动条操作 
      

  5.   

    body标签里面加样式 style="overflow-x: hidden;"
    然后还要在整个页面加个样式
    <style>
     * html {overflow-x:hidden;} 
     body { overflow-x:hidden;}
    </style>按理来讲body标签中加了style="overflow-x: hidden;"就可以去掉了,但是为什么不行了,那就是浏览器版本惹的祸,试试吧,100%可以的
      

  6.   

    用在页面:style="overflow-x:hidden"
    JS:overflowX:'hidden'
      

  7.   

    老大 我这里用的是ext 您那帖子说的是html 能行么?
      

  8.   

    我用的是ext 根本就没有body 标签。
      

  9.   

     powerOfAttApplication.superclass.constructor.call(this, {
    labelAlign: "right",
    buttonAlign: "right",
    frame: true,
    bodyStyle: "padding:0 0",
    labelWidth: 150,
    layout: "fit",
    autoScroll: true,
    overflowX:'hidden',
    items: [{
                title: '授权委托书申请信息',
                xtype: 'fieldset',
    在1024*768 情况下 还是不行 有水平滚动条
      

  10.   

     试试有没有scrolling属性(iframe可以)scrolling:'yes'
    overflowX:'hidden',