📄 default.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" StylesheetTheme ="mytheme"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>StylesheetTheme属性</title>
</head>
<body >
<form id="form1" runat="server">
<div>
<table style="width: 434px; height: 55px" align =center border =1 >
<tr>
<td colspan="2" style="font-size: 12pt; font-family: 宋体" align="center">
<span style="font-size: 14pt; font-family: 方正姚体"><strong>
通过StylesheetTheme属性<br />
设置控件的属性来禁用该控件的主题 </strong></span>
</td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: 12pt; font-family: 宋体; width: 287px;">
<span style="font-size: 10pt">使用默认样式:</span></td>
<td>
<asp:TextBox ID="TextBox1" runat="server" Width="178px"></asp:TextBox></td>
</tr>
<tr style="font-size: 12pt">
<td style="font-size: 9pt; font-family: 宋体; width: 287px;" align="left">
<span style="font-size: 10pt">修改控件的BackColor属性:</span></td>
<td>
<asp:TextBox ID="TextBox2" runat="server" Width="178px" SkinID=Blue BackColor="#FFE0C0"></asp:TextBox></td>
</tr>
<tr>
<td style="font-size: 9pt; font-family: 宋体; width: 287px;">
<span style="font-size: 10pt">修改控件的BorderStyle为"Outset":</span></td>
<td>
<asp:TextBox ID="TextBox3" runat="server" Width="182px" SkinID=Green BorderStyle="Outset"></asp:TextBox></td>
</tr>
<tr>
<td style="font-size: 9pt; font-family: 宋体; width: 287px;">
<span style="font-size: 10pt">修改控件的Width属性:</span></td>
<td>
<asp:TextBox ID="TextBox4" runat="server" SkinID=Yellow Width="180px"></asp:TextBox>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -