如何从右侧输入文本框中的数据 [英] how to enter data in textbox from right side
本文介绍了如何从右侧输入文本框中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在文本框中我想从右侧输入数据
像计算器中的文本框
in textbox i want to enter data from right side
like textbox in calculator
推荐答案
<style>
.aligntext
{
text-align:right;
}
</style>
textBox1.TextAlign = HorizontalAlignment.Right
没有保证,但你可以使用CSS:
创建一个类:
No guarantees, but you might be able to use CSS:
Creat a class:
.rightText
{
text-align:right;
}
然后在ASPX文件中将CSSClass属性设置为该类。
and then set the CSSClass attribute to that class in the ASPX file.
<asp:TextBox CSSClass="rightText">
这篇关于如何从右侧输入文本框中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文