| 
注册时间2015-4-26最后登录2021-2-5阅读权限10积分77精华0帖子10
 
 
 | 
| 本帖最后由 dforce 于 2015-7-7 09:10 编辑 
 当把浏览器窗口缩小后,mini-fit并没让grid出现水平滚动条,而是浏览器自身出水平滚动条了.这里应该怎么修改下让grid正确出现水平滚动条呢?
 
 
 
 
 
 
 复制代码<%@ page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8" session="false" %>
        
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- 
  - Author(s): 
  - Date: 2015-07-06 21:13:26
  - Description:
-->
<link href="../t1/style.css" rel="stylesheet" type="text/css" />
<head>
<title>Title</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <script src="<%= request.getContextPath() %>/common/nui/nui.js" type="text/javascript"></script>
    
</head>
<body>
<table>
        <tr>
                <td colspan="3" class="td_title">
                XYZ
                </td>
        </tr>
        <tr>
                <td colspan="3">
                         <div class="nui-fit">
                <div id="datagrid1" dataField="tcountrys" class="nui-datagrid" style="width:100%;height:300px;" url="com.primeton.eos.t1.tcountrybiz.queryTCountrys.biz.ext" pageSize="10" showPageInfo="true" multiSelect="true" onselectionchanged="selectionChanged" allowSortColumn="false">
                    <div property="columns">
                        <div type="indexcolumn">
                        </div>
                        <div type="checkcolumn">
                        </div>
                        <div field="id" headerAlign="center" allowSort="true" visible="false">
                            id
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            name
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            A
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            B
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            C
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            D
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            E
                        </div>
                        <div field="name" headerAlign="center" allowSort="true" >
                            F
                        </div>
                    </div>
                </div>
            </div>
                </td>
        </tr>
        <tr>
                <td class="td_bottom_left">
                 第一列
                </td>
                <td>
                第二利
                </td>
                <td class="td_bottom_right">
                第三列
                </td>
        </tr>
</table>
        <script type="text/javascript">
            nui.parse();
            var grid = nui.get("datagrid1");
            
            grid.load();
    </script>
</body>
</html>
 
 
 | 
 |