DIV CSS 佈局教程網

用 CSS 美化 Dreamweaver 中的按鈕(五種樣式)
編輯:Dreamweaver相關     

樣式一:平面按鈕

<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>

樣式二:彩色按鈕

<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;color:#000000;font-size:9pt;height:18px;line-height:normal}
input.b1{background:#6699FF;border:1 solid #6699FF;color:#ffffff;font-size:9pt;height:18px;line-height:normal}
</style>

<input type="text" name="textfield" class=a1>
<input type="submit" name="Submit" value="彩色按鈕" class="b1">

樣式三:紅色立體按鈕

<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;color:#000000;font-size:9pt;height:18px;line-height:normal}
input.b2{background:#CC0000;border:3 solid #DEE3E7;color:#ffffff;font-size:9pt;height:18px;line-height:normal}
</style>

<input type="text" name="textfield3" class="a2">
<input type="submit" name="Submit3" value="登錄" class="b2">

樣式四:橘色登入按鈕

<input name="submit" type=submit class=so style="background-color:#e86000;color:#ffffff;height:20px;width:58px" value="登 錄">

樣式五: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 class=btn title="這是一個按鈕">這是一個按鈕</button>

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