简体   繁体   English

Bootstrap 5 输入文本 - 右对齐

[英]Bootstrap 5 Input Text-Align right

I want to display the values of my inputs aligned to the right.我想显示我的输入值向右对齐。 How can I do that?我怎样才能做到这一点?

You can see in the image what I want.你可以在图像中看到我想要的。

My code is as follows:我的代码如下:

<td style="text-align:center; vertical-align: middle; padding: 8px 18px;">
    <input type="text" class="form-control float-end" id="orden${count}" value="${c}">
</td>

Use text-end class...使用text-end class...

<td style="text-align:center; vertical-align: middle; padding: 8px 18px;">
    <input type="text" class="form-control float-end text-end" id="orden${count}" value="${c}">
</td>

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

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