简体   繁体   English

TextField 右对齐文本

[英]TextField Right align text

In wicket textfield how can I align text and cursor to right of the textfield?在检票口文本字段中,如何将文本和 cursor 对齐到文本字段的右侧? For number input right alignment of the text is better in my opinion.对于数字输入权,我认为文本的 alignment 更好。 What I want is to write text from right to left, usually it is in opposite.我想要的是从右到左写文字,通常是相反的。

Try either or both of these on your input element:在您的输入元素上尝试其中一个或两个:

 align="right" 
 style="text-align: right"

Does the trick according to here and this SO question .根据这里和这个SO question的技巧。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM