[英]how to adjust character spacing of a label
如何調整標簽控件中的字符間距。 在屬性窗口中沒有這樣的屬性。
<asp:Label ID="label01" runat="server" Text="EXPLORATIONS" Font-Bold="True"
Font-Names="Verdana" Font-Size="Small" ForeColor="#999999"></asp:Label>
您可以使用CSS letter-spacing
屬性 :
<asp:Label ID="label01" runat="server" Text="EXPLORATIONS" Font-Bold="True" Font-Names="Verdana" Font-Size="Small" ForeColor="#999999" CssClass="YourStyle" />
<style>
.YourStyle
{
letter-spacing: 4px;
}
</style>
您可以將CssClass
應用於Label
控件,在其中可以給出字母間距。
像這樣
<style type="text/css">
.spacing
{
letter-spacing:12px;
}
</style>
<asp:Label ID="Label1" runat="server" Text="Your nice text line"
CssClass="spacing" />
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.