如何控制弹出表单的布局(对齐) [英] How do I control the layout of the pop-up form (alignment)
问题描述
我使用JqGrid jquery插件,我想使用插入弹出窗口功能,但是当控件排列好后,我将对其进行研究,我们如何控制顺序(对齐)
I Use JqGrid jquery plugin, i Want to use insert popup Capability, but I'll look into it when the controls are arranged,How can we control the order(alignment)
我想参加.
谢谢
推荐答案
我没有RTL语言方面的经验,但是如果我使用direction: 'rtl'
I have no experience in RTL languages, but if I use direction: 'rtl'
option of jqGrid I have much better results as in your screen shorts:
请参见演示.我希望演示会为您提供帮助.
see the demo. I hope the demo will help you.
更新:在我看来,ui.jqgrid.css
的一行中有一个错误,该错误定义了.ui-jqdialog-content .CaptionTD
的样式.应当从样式设置中删除text-align: left;
,以从父级继承text-align
样式.在使用RTL语言的情况下,可以在ui.jqgrid.css
之后添加以下其他CSS来解决此问题:
UPDATED: It seems to me there are a bug in the ui.jqgrid.css
in the line which defines style for .ui-jqdialog-content .CaptionTD
. One should remove text-align: left;
from the style settings to inherit the text-align
style from the parent. One can fix the problem by including the following additional CSS after the ui.jqgrid.css
in case of usage RTL language:
.ui-jqdialog-content .CaptionTD {text-align: right;}
演示(使用修改后的CSS)将编辑表单显示为以下:
The demo which uses modified CSS display the edit form as the following:
这篇关于如何控制弹出表单的布局(对齐)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!