开发者

How to encode text to suit languages written from right to lef

I am building the site in hebrew..The problem is that every exclamation mark, or any other mark which isnt a letter will pass to the beginning:

Example "@#$%^&!משפט זה נכתב על ידי"

would be rendered as text when put into a label: "משפט זה נכתב על ידי@#$%^&!"

How can I prevent that phenomena from happening in TextBoxes, lables..etc.

                <cc1:Editor 
                    ID="Editor1" 
                    Width="850px"  
                    Height="400px"
                    runat="server" 
                   开发者_StackOverflow中文版  style="z-index: 1; direction:rtl; left: 137px; top: 485px; position: absolute; height: 400px; width: 850px;"/>

see direction is right to left.. But when I type... it doesnt type normally like I type in English and the phenomena aforementioned happens..


Set the direction tag in css to rtl. e.g :

<asp:TextBox ID="id1" runat="server" style="direction:rtl; text-align:right;">
</asp:TextBox>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜