<input type="text" name="textfield" class=sa>
<input type="submit" name="Submit" value="平面按鈕" class=sa>
<input type="text" name="textfield" class=a1>
<input type="submit" name="Submit" value="彩色按鈕" class="b1">
3.樣式三
代碼如下:
<style type="text/css">
input.a2{background:#ffffff;border-bottom-color:#CC0000; border-bottom-width:1px;border-top-width:0px;border-left-width:0px;border-right-width:0px; solid #ff6633; color: #000000; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal;FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal}
input.b2{BACKGROUND: #CC0000; border:3 solid #DEE3E7; COLOR: #ffffff; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal}
</style>
<input type="text" name="textfield3" class="a2">
<input type="submit" name="Submit3" value="^^^^^" class="b2">
4.樣式四
代碼如下:
<INPUT name="submit" type=submit class=so style="BACKGROUND-COLOR: #e86000; COLOR: #ffffff; HEIGHT: 20px; WIDTH: 58px" value= 登 錄 >
5.樣式五:button元素,以下效果要有IE5.5+支持
代碼如下:
<style>
.btn {
BORDER-LEFT: #ff9966 1px solid;/*左邊框*/
BORDER-RIGHT: #ff9966 1px solid;/*右邊框*/
BORDER-TOP: #ff9966 1px solid;/*上邊框*/
BORDER-BOTTOM: #ff9966 1px solid;/*下邊框*/
PADDING-LEFT: 2px;/*左間隙*/
PADDING-RIGHT: 2px; /*右間隙*/
PADDING-TOP: 2px;/*上間隙*/
PADDING-BOTTOM: 2px;/*下間隙*/
FONT-SIZE: 12px;/*字號*/
CURSOR: hand;/*光標類型*/
COLOR: #000000;/*字色*/
FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#ff9966);/*濾鏡*/
}
</style>
<button