用CSS製作的超漂亮實用的網頁按鈕,如果您有用就直接拿過去用吧!- + ^, Q: o& J) U" P$ n5 J. u
- <html>
2 Y" A8 U7 d9 K h - <head>
' |* f9 t- k, T- [" Q - <meta http-equiv="Content-Type" content="text/html; charset=gb2312">6 c0 [+ y# h" ]: X. \5 M5 R
- <title>CSS實現的幾個非常漂亮的按鈕</title>- i' k) z# O4 e9 h# N. Q0 A9 j' \) o9 x
- <style>
5 M* }5 G) M+ a% z - .btn {
7 x+ x( i. D: U - BORDER-RIGHT: #7b9ebd 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7b9ebd 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#cecfde); BORDER-LEFT: #7b9ebd 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7b9ebd 1px solid
7 @/ s4 y$ Z6 [ o, z P2 X - }+ |% q- X0 J9 c. @3 y
- .btn1_mouseout {
* A( i2 v6 Y" I; |" v/ o. e } - BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#B3D997); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid
R/ G, v8 a# e, w, }" @0 W( o" i {' C - }' U. \+ I, }7 T4 [2 l/ F; E
- .btn1_mouseover {$ y9 S& ]6 s: h P4 j9 Z7 y' N) J
- BORDER-RIGHT: #7EBF4F 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #7EBF4F 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#CAE4B6); BORDER-LEFT: #7EBF4F 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #7EBF4F 1px solid3 y V' _6 q: t; K! e& Q" w6 q
- }
& n/ e+ ]8 Y# Q. P X j - .btn2 {padding: 2 4 0 4;font-size:12px;height:23;background-color:#ece9d8;border-width:1;}
9 K, `4 V" |+ y( D% @ - .btn3_mouseout {. G6 W4 m* i/ L; }' r' M. _
- BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid) p8 p* F) L B4 b/ U
- }5 R$ c1 L. T" v) e* z0 R) l
- .btn3_mouseover {0 g; A+ C9 d3 O/ t& |3 h& {
- BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#D7E7FA); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid' Z8 o- m9 z0 C* H
- }
3 _2 h* T0 m" R0 B - .btn3_mousedown
% ~% n) D& E( P5 F$ x - {5 T- B! V; d8 \
- BORDER-RIGHT: #FFE400 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #FFE400 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #FFE400 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #FFE400 1px solid
' N2 O$ ]( h! s% t/ a - }
5 M0 K" N. @$ O - .btn3_mouseup {# H* Z5 u% L [ H
- BORDER-RIGHT: #2C59AA 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #2C59AA 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffffff, EndColorStr=#C3DAF5); BORDER-LEFT: #2C59AA 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #2C59AA 1px solid
; ]' k4 L4 r9 D ^( N/ Y" B& Y - }
- a- x# V8 a) A/ \1 S - .btn_2k3 {' [8 r7 y" L, A; v9 ~! v1 C
- BORDER-RIGHT: #002D96 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: #002D96 1px solid; PADDING-LEFT: 2px; FONT-SIZE: 12px; FILTER: progidXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#FFFFFF, EndColorStr=#9DBCEA); BORDER-LEFT: #002D96 1px solid; CURSOR: hand; COLOR: black; PADDING-TOP: 2px; BORDER-BOTTOM: #002D96 1px solid. ~: x w3 o0 H6 l( V' [
- }2 J8 }: G) ]5 F8 X A9 K$ u
- </style>' z( r. \- J) `2 B5 c/ ]0 E+ S
- </head>1 k2 Y1 b+ m6 A: N2 s" L2 y5 T
- <body>0 h( R% L# U/ }! \
- <button class=btn title="好看的按鈕">好看的按鈕</button><P>8 o6 ]/ ?/ u- _* \: z! n
- <button
8 m( w/ G$ `8 w2 s0 a. k( N - class=btn1_mouseout onmouseover="this.className='btn1_mouseover'", G7 Y) y/ `$ r8 l% d# O4 K% X( r
- onmouseout="this.className='btn1_mouseout'"+ {1 ~: C: R7 ^
- title="好看的按鈕">好看的按鈕</button>* _" b4 C# L7 Q9 _. p# a1 O; T: t
- <P>/ t0 s- q$ \2 k
- <button5 ?- a- l- T: {* e
- class=btn1_mouseout onmouseover="this.className='btn1_mouseover'"/ Z1 R2 d, ?3 u$ ?# i
- onmouseout="this.className='btn1_mouseout'" DISABLED>好看的按鈕</button>1 y" K6 d" R: d+ X% G
- <P>
% J( F, N$ W A! y1 I( S5 N/ c) [ - <button class=btn2 title="好看的按鈕">好看的按鈕</button>
& a' g* @9 p; f+ w - <P>
2 J8 h, n' {& I% M! r1 g1 D - <button class=btn3_mouseout onmouseover="this.className='btn3_mouseover'"7 P" ?7 [- r# L0 Q
- onmouseout="this.className='btn3_mouseout'"* k$ s# j: L- K8 e6 y; i' y% C
- onmousedown="this.className='btn3_mousedown'"# _$ a/ k+ T; `: O( Z
- onmouseup="this.className='btn3_mouseup'"
" U: @) Y; g4 `8 ?! o0 H - title="好看的按鈕">好看的按鈕</button>
) G! i- f# \ l+ }! ] - <P>
: a2 `% n. N8 e - <button class=btn_2k3 title="好看的按鈕">好看的按鈕</button>
( D( Q9 W0 u6 G( d6 u6 _ - </body>
! e1 x5 v" z2 ^( o3 l3 _6 m9 p - </html>
複製代碼 |
|