线上方的标签对齐 [英] Label Alignment above line

查看:81
本文介绍了线上方的标签对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的一个Td应该像名称____底线上方我放置了另一个标签运行时,我必须给标签分配一个值,但是当该值在标签底线上重叠时.但是我的要求是标签文本应该在下划线上方.您请提出建议,我该如何改进


Hi
One of my Td should like Name _________________ above underline i have placed another label run time i have to assign a value to the label but when the value is on the label underline is overlapping.But my requirement is Label text should be above underline.could you please advice how do i improve this


<td class="style6">
                                                                                                                                   <asp:Label ID="namelbl" Text="Name" runat="server"
                                                                                                                                       style="font-family: ''Times New Roman'', Times, serif; font-weight: 700">                      _<asp:Label
                                                                                                                                       ID="Label3" runat="server" Text="hi">
                                                                                                                                   _________________________</td>



谢谢



Thanks

推荐答案

使用"u"标签..

< td>
< asp:标签ID ="Label3" runat =服务器"> < u> HI</u>
</asp:标签>
</td>

如果您要从数据库中添加标签文本,则如下所示..

< td>
< asp:标签ID ="Label3" runat =服务器">
< u> ''<%#Eval("YourExpression")%>''</u>
</asp:标签>
</td>


希望这对您有帮助...
use "u" tag like this..

<td>
<asp:Label ID="Label3" runat="server"> <u> HI </u>
</asp:Label>
</td>

if you are bingding label text from database then you as like below..

<td>
<asp:Label ID="Label3" runat="server">
<u> ''<%# Eval("YourExpression") %>'' </u>
</asp:Label>
</td>


Hope this helps...




我给您提供一个简单的解决方案,使标签文本带有下划线

做到:
Hi,

I give you a simple solution for make label text underline

make it :
Font-Underline="true"





<table><tbody><tr><td>
<asp:label id="Label1" runat="server" font-underline="true" xmlns:asp="#unknown">  HI 
</asp:label>
</td></tr></tbody></table>



style =''border-bottom:1px

style=''border-bottom:1px


Solid Black; text-align:center;''

Solid Black; text-align: center;''


这篇关于线上方的标签对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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