📄 button3_cs.aspx
字号:
<html>
<head>
<script language="C#" runat="server">
void Button1_Click(object s, EventArgs e) {
Label1.Text="You clicked Button1";
}
void Button2_Click(object s, EventArgs e) {
Label1.Text="You clicked Button2";
}
</script>
</head>
<body>
<h3><font face="Verdana">Mouse-Over Effects on Button</font></h3>
<p>Move your mouse over the buttons to observe the mouse-over effects.</p>
<form runat=server>
<font face="Verdana" size="-1">
<asp:Button id=Button1 runat="server"
Text="Button1"
Width="100px"
onmouseover="this.style.backgroundColor='yellow'"
onmouseout="this.style.backgroundColor='buttonface'"
onclick="Button1_Click" />
Applies an inline CSS style (button background color)...
<p>
<asp:Button id=Button2 runat="server"
Text="Button2"
Width="100px"
onmouseover="this.style.fontWeight='bold'"
onmouseout="this.style.fontWeight='normal'"
onclick="Button2_Click" />
Applies an inline CSS style (button font bold)...
<p>
<asp:Label id=Label1 runat=server />
</font>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -