如何在asp.net中将标签对齐设置在顶部 [英] how to set label align at top in asp.net
问题描述
我有两个标签,一个标签是标题",另一个标签是多行文本".如果第二个标签是更多文本,则标题的第一个标签要居中.我想将标题放在顶部.
例如:
标签1标签2
dfdfsdfsdfsfsfsf//像这样来
dfdfsd dffsdfsdfsdfsdfs
dsfsdfsdfsdfsdfs
fdsdfsdfdsfsdfdf
我想要以下格式:
dfdfsd dfdfsdfsdfsfsfsf//像这样来
dffsdfsdfsdfsdfs
dsfsdfsdfsdfsdfs
fdsdfsdfdsfsdfds
请任何人帮我..........
I have two labels one label is Title and another one is for multiLine Text. If Second label is more text then First label of title is coming to middle.I want to coming title at top.
for example :
label1 label2
dfdfsdfsdfsfsfsf // coming like that
dfdfsd dffsdfsdfsdfsdfs
dsfsdfsdfsdfsdfs
fdsdfsdfdsfsdfdf
I want below format:
dfdfsd dfdfsdfsdfsfsfsf // coming like that
dffsdfsdfsdfsdfs
dsfsdfsdfsdfsdfs
fdsdfsdfdsfsdfds
Please any one help me..........
推荐答案
hi 创建表格标签
并尝试将标签放在单独的trtd标签中
然后将tr标签对准顶部.
它将起作用
hi create table tag
and try to put labels in separatetrtd tags
then align that tr tag to top.
it will work
您好,CH Guravaiah,
您可以将valign ="top"赋予第一个标签,也可以将它们带入diff的表结构中. tr和td.
kkakadiya
hi CH Guravaiah,
u can give valign="top" to first label or take them in table structure in diff. tr and td.
kkakadiya
创建表格标签.
td valign ="top"
这里是第一个标签
Hi,
create table tag.
td valign="top"
here first Label
这篇关于如何在asp.net中将标签对齐设置在顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!