DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁製作工具 >> Dreamweaver教程 >> Dreamweaver相關 >> dreamweaver中美化按鈕
dreamweaver中美化按鈕
編輯:Dreamweaver相關     
1.樣式一 平面按鈕



代碼如下:

<style type="text/css">
input.sa{border:1 solid black;FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal}
</style>

<input type="text" name="textfield" class=sa>
<input type="submit" name="Submit" value="平面按鈕" class=sa>

2.樣式二



代碼如下:

<style type="text/css">
input.a1{background:#ffffff;border-bottom-color:#6699FF; 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.b1{BACKGROUND: #6699FF; border:1 solid #6699FF; COLOR: #ffffff; FONT-SIZE: 9pt; FONT-STYLE: normal; FONT-VARIANT: normal; FONT-WEIGHT: normal; HEIGHT: 18px; LINE-HEIGHT: normal}
</style>

<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

12下一頁
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved