我正在将 jTable 用于我目前正在从事的项目,并想看看你们是否可以帮助解决我遇到的 CSS 问题。我在向 jTable 添加新记录时弹出的表单下方制作了一个 jsfiddle。因为我有这么多行,它比可见屏幕长。你认为有可能通过一些 CSS 调整来使它成为一个两列或三列的框吗?
我无法更改此表单的生成,因此它只能是 CSS。
表格的简短版本如下:
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-dialog-buttons ui-draggable ui-resizable" style="position: absolute; height: auto; width: auto; top: 0px;" tabindex="-1" role="dialog" aria-describedby="ui-id-58" aria-labelledby="ui-id-59">
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix"><span id="ui-id-59" class="ui-dialog-title">Add new record</span>
<button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only ui-dialog-titlebar-close" role="button" aria-disabled="false" title="close"><span class="ui-button-icon-primary ui-icon ui-icon-closethick"></span><span class="ui-button-text">close</span>
</button>
</div>
<div id="ui-id-58" style="width: auto; min-height: 0px; max-height: none; height: auto; display: block;" class="ui-dialog-content ui-widget-content">
<form id="jtable-create-form" class="jtable-dialog-form jtable-create-form" action="/Demo/CreateStudent" method="POST">
<div class="jtable-input-field-container">
<div class="jtable-input-label">Institution Name</div>
<div class="jtable-input jtable-text-input">
<input class="" id="Edit-[Institution Name]" type="text" name="[Institution Name]">
</div>
</div>
<div class="jtable-input-field-container">
<div class="jtable-input-label">RSE50 Name</div>
<div class="jtable-input jtable-text-input">
<input class="" id="Edit-[Institution RSE50 Name]" type="text" name="[Institution RSE50 Name]">
</div>
</div>
<div class="jtable-input-field-container">
<div class="jtable-input-label">Legal Name</div>
<div class="jtable-input jtable-text-input">
<input class="" id="Edit-[Interest Fax Institution]" type="text" name="[Interest Fax Institution]">
</div>
</div>
</form>
</div>
<div class="ui-dialog-buttonpane ui-widget-content ui-helper-clearfix">
<div class="ui-dialog-buttonset">
<button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Cancel</span>
</button>
<button type="button" id="AddRecordDialogSaveButton" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">Save</span>
</button>
</div>
</div>
</div>
谢谢