How do I control the layout of the pop-up form (alignment)

巧了我就是萌 提交于 2020-01-03 04:22:08

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!