如何在asp.net表单中对齐文本框控件 [英] how to align textbox controls in a asp.net form

查看:94
本文介绍了如何在asp.net表单中对齐文本框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须显示名字,姓氏,省,国家,城市的文本框。等,但我无法对齐它们。我试图将它们与空格对齐但却无法得到结果......丑陋的丑陋。如何以正确的方式对齐它们,如下所示。



如何以这种方式对齐它们



名字:TextBox Control



姓氏:Texbox control

i have to show a textboxes for firstname , lastname, province , country , city. etc but i am not able to align them . i tryied to align them with spaces but not able to get the results.. the loook ugly. how to align them in proper way like below.

how to align them in that way

First Name: TextBox Control

Last Name: Texbox control

推荐答案

查看这些链接以寻求可能的解决方案:

以十个步骤学习CSS定位 [ ^ ]

ASP.NET - 如何使用CSS对齐ASP.NET在数据输入情况下控制? [ ^ ]
Have a look at these links for possible solution:
Learn CSS Positioning in Ten Steps[^]
ASP.NET - How to use CSS to align ASP.NET controls in a data entry situation?[^]


使用表格(html表格)为这些值做对齐。
Use a table (html table) to do alignments for these values.


使用DIV对象。请查看此 http://tinyurl.com/3shu3bb [ ^ ]



干杯!
Use DIV objects. Check this http://tinyurl.com/3shu3bb[^]

Cheers!


这篇关于如何在asp.net表单中对齐文本框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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