解决方案 »

  1.   

    你那块内容是a 这种内容组成的吧。。如果有空格内容会自动换行的,你的是a a a 这种相当于一个单词,不会自动换行,虽然&nbps;是空格的实体,但是不能那样写,要替换为a a a或者给easyui增加样式,强制换行
    <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
    <style>.panel-body{word-wrap:break-word;word-break:break-all}</style>
      

  2.   

    真正的内容是个图表,我把中间的条往左边拖动,那个图表有一部分就看不见了,然后就出现了滚动条,我现在需要如何才能让图标自适应。
    <div id="container" data-options="region:'center',title:'图表显示'" >
            <div class="easyui-layout" data-options="fit:true" style="width: 100%">
                <div class="easyui-layout" data-options="region:'north',split:true,border:false "
                    style="height: 400px;width: 100%" >
                    <div data-options="region:'west',title:'能耗统计图' ,split:true,border:false" style="width: 1200%;height:50px;">                  
                        <div id="containerZZT" style="width: 100%; height: 100%;">
                        </div>                  
                    </div>
                    <div data-options="region:'center',title:'能耗饼状图' ,split:true,border:false">
                        <div id="containerBZT" style="width: 100%; height: 100%;">
                        </div>
                    </div>
                </div>
                <div class="easyui-layout" data-options="region:'center',split:true,border:false"
                    style="height: 400px;width: 100%">
                    <div data-options="region:'west',title:'用能时间环比折线图',split:true,border:false" style="width: 1200%">
                        <div id="containerZXT" style="width: 100%; height: 100%;">
                        </div>
                    </div>
                    <div data-options="region:'center', title:'数据显示',split:true,border:false" style="width: 100%">
                        <table id="dg" style="width: 100%; height: 100%;">
                        </table>
                    </div>
                </div> 
            </div>
        </div>
    这个是4块内容图表的代码。
      

  3.   

    添加onResize事件。你自己看图表的API来看了是否支持动态更新大小,不支持无解。除非你自己操作图表容器修改图表大小。