- 注册时间
- 2012-9-24
- 最后登录
- 2017-7-1
- 阅读权限
- 10
- 积分
- 364
- 精华
- 0
- 帖子
- 59
|
niko 发表于 2012-10-12 18:53
不要用兼容模式,用标准模式。
你基于我们标准示例测试。
我在IE 10标准模式和兼容模式下测试都是这样Chrome也是,我就用你说的那个示例的代码吧
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Fit Layout</title>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
- <link href="../demo.css" rel="stylesheet" type="text/css" />
- <script src="../../scripts/boot.js" type="text/javascript"></script>
- </head>
- <body>
-
- <style type="text/css">
- body { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: visible; }
- </style>
- <div class="mini-toolbar" style="padding: 2px; border-bottom: 0;">
- <table style="width: 100%;">
- <tr>
- <td style="width: 100%;">
- <a class="mini-button" iconcls="icon-save" plain="true">保存</a>
- <a class="mini-button" iconcls="icon-close" plain="true">关闭</a>
- <span class="separator"></span>
- <a class="mini-button" iconcls="icon-reload" plain="true">刷新</a>
- </td>
- <td style="white-space: nowrap;">
- <label style="font-family: Verdana;">名称: </label>
- <input class="mini-textbox" />
- <a class="mini-button" iconcls="icon-search" plain="true">查询</a>
- </td>
- </tr>
- </table>
- </div>
- <!--撑满页面-->
- <div class="mini-fit">
-
- <div id="datagrid1" class="mini-datagrid" style="width: 100%; height: 100%;"
- url="../data/AjaxService.aspx?method=SearchEmployees" idfield="id"
- sizelist="[5,10,20,50]" pagesize="10">
- <div property="columns">
- <div type="indexcolumn"></div>
- <div field="loginname" width="120" headeralign="center" allowsort="true">员工帐号</div>
- <div field="name" width="120" headeralign="center" allowsort="true">姓名</div>
- <div field="gender" width="100" renderer="onGenderRenderer" align="center" headeralign="center">性别</div>
- <div field="salary" width="100" allowsort="true">薪资</div>
- <div field="age" width="100" allowsort="true">年龄</div>
- <div field="createtime" width="100" headeralign="center" dateformat="yyyy-MM-dd" allowsort="true">创建日期</div>
- </div>
- </div>
-
- </div>
-
- <script type="text/javascript">
- mini.parse();
- var grid = mini.get("datagrid1");
- grid.load();
- </script>
-
- </body>
- </html>
-
复制代码 只是把
- <style type="text/css">
- body { margin: 0; padding: 0; border: 0; width: 100%; height: 100%; overflow: visible; }
- </style>
复制代码 移到从head区域移到body区域
|
|