问题
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)
I would like to be in.
thanks
回答1:
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.
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;}
The demo which uses modified CSS display the edit form as the following:
来源:https://stackoverflow.com/questions/8993069/how-do-i-control-the-layout-of-the-pop-up-form-alignment