我实际上是在寻找一种显示“Windows 按钮”的好方法。我找到了一个不错的解决方案......这是代码:
.aspx 代码:
<asp:Button ID="btnInsert" runat="server" CssClass="btn_normal" Text="Add" OnClick="btnInsert_Click" />
.css 代码:
.btn_normal
{
background-color: #f5f5f5;
border: 1px solid #dedede;
border-top: 1px solid #eee;
border-left: 1px solid #eee;
font-family: Arial, sans-serif;
font-size: 12px;
font-weight: bold;
color: #565656;
height: 25px;
}
.btn_normal:hover
{
font-family: Arial, sans-serif;
background-color:#E6EFC2;
border:1px solid #C6D880;
color:#529214;
font-size: 12px;
height: 25px;
}
.btn_normal:active
{
font-family: Arial, sans-serif;
background-color: #529214;
border: 1px solid #C6D880;
color: #fff;
font-size: 12px;
height: 25px;
}
结果: