ASP.Net文本从右到左 [英] ASP.Net textbox right to left

查看:198
本文介绍了ASP.Net文本从右到左的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP.Net,光标是在左边,我希望把它放在右边。

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.

但有没有在ASP.Net

But there is none in ASP.Net

如何实现呢?

推荐答案

使用CSS样式:

 { direction:rtl;}

编辑。例如:

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

和CSS:

.ltor {direction:rtl;}

这篇关于ASP.Net文本从右到左的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆