ASP.Net textbox right to left

安稳与你 提交于 2019-12-23 09:32:16

问题


In ASP.Net, the cursor is on the left side and I would like to put it on the right side.

In Window form, there is right to left in the properties.

But there is none in ASP.Net

How to achieve so?


回答1:


Use css style:

 { direction:rtl;}

edit. example:

<asp:TextBox ID="TextBox1" runat="server" CssClass="ltor"></asp:TextBox>

and css:

.ltor {direction:rtl;}



回答2:


You could simple use the <dir> attribute for the specific element as well. 8.2 Specifying the direction of text and tables: the dir attribute



来源:https://stackoverflow.com/questions/5527030/asp-net-textbox-right-to-left

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