stylesheet.css
如何在c#中使用樣式表設置組件的字體?
body
{
font-family:Tahoma;
}
Label
{
font-family:Freestyle Script;
}
Hyperlink
{
font-family:Times New Roman;
}
TextBox
{
font-family:Tahoma;
}
index.aspx
<link rel="Stylesheet" href="StyleSheet.css" type="text/css" />
其不被afffected的超級鏈接&標籤和兩個不設定不同的字體。
我的組件位於
我怎麼分配ID?它已完成使用超鏈接但輸入不工作。與輸入我將如何區分標籤和文本框? –
此外,您必須添加ClientIDMode =「Static」才能在客戶端獲得相同的ID。 – Flowerking