问题
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