【发布时间】:2012-03-01 05:06:42
【问题描述】:
jqgrid 可以增加顶部工具栏的高度吗? 在 PC 中我可以看到按钮,然后选择框确定。 但是当在平板电脑 ie andriod ICS 和 ios 5 中查看时,按钮和选择框在底部被截断,因为高度太短或填充导致选择框和按钮显示很少。
使用最新的jqgrid 4.3.1
<table id="gridmain"></table>
<div id="pagermain"></div>
<script src="Usergrid.js" type="text/javascript"> </script>
然后在我的 js 文件中: 我启用工具栏:
toolbar: [true,"top"]
然后我在顶部工具栏上添加了一些选择选项和按钮:
$("#t_gridmain").append(" Status: ");
$("#t_gridmain").append("<select name='selStatus' id='selStatus'><option value='All'>All</option><option value='InProgress' selected>InProgress</option><option value='New'>New</option><option value='Passed'>Passed</option><option value='Failed'>Failed</option><option value='Withdrawn'>Withdrawn</option></select> ");
$("#t_gridmain").append("<input type='button' value='Email' id='buttEmail' style='height:20px;font-size:-4'/> ");
$("#t_gridmain").append("<input type='checkbox' id='showinactive' name='showinactive'/> Show Inactive ");
谢谢。
【问题讨论】: