CSS Definition page Layout Nice button button code
<!doctype HTML Public "-//W3C//DTD XHTML 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/ Xhtml1-transitional.dtd ">
<html xmlns= "http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv= "Content-type content=" HTML; charset=gb2312 "/>
<title>css defines a nice button button code for a Web page layout </title>
<style>
BTN {
border-right: #7b9ebd 1px solid; padding-right:2px; Border-top: #7b9ebd 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
Btn1_mouseout {
Border-right: #7ebf4f 1px solid; padding-right:2px; Border-top: #7ebf4f 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
Btn1_mouseover {
border-right: #7ebf4f 1px solid; padding-right:2px; Border-top: #7ebf4f 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.microsoft.gradient (gradienttype=0, startcolorstr= #ffffff, endcolorstr= #cae4b6); Border-left: #7ebf4f 1px solid; Cursor:hand; Color:black; padding-top:2px; Border-bottom: #7ebf4f 1px solid
}
. btn2 {padding:2 4 0 4;font-size:12px;height:23;background-color: #ece9d8; border-width:1;}
Btn3_mouseout {
Border-right: #2c59aa 1px solid; padding-right:2px; Border-top: #2c59aa 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
Btn3_mouseover {
border-right: #2c59aa 1px solid; padding-right:2px; Border-top: #2c59aa 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
Btn3_mousedown
{
Border-right: #ffe400 1px solid; padding-right:2px; Border-top: #ffe400 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
Btn3_mouseup {
border-right: #2c59aa 1px solid; padding-right:2px; Border-top: #2c59aa 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
btn_2k3 {
Border-right: #002d96 1px solid; padding-right:2px; Border-top: #002d96 1px solid; padding-left:2px; font-size:12px; Filter:progid:dximagetransform.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
}
</style>
</head>
<body>
<button class=btn title= "nice button" > Nice button </button><p></p>
<button
Class=btn1_ Mouseout onmouseover= ' this.classname= ' btn1_mouseover '
onmouseout= ' this.classname= ' btn1_mouseout '
title= "nice button" > Nice button </button>
<button
class=btn1_mouseout onmouseover= " This.classname= ' Btn1_mouseover ' "
onmouseout=" this.classname= ' btn1_mouseout ' "disabled> nice button </ Button>
<p>
<button class=btn2 title= "good-looking button" > Nice button </button>
<p>
< Button class=btn3_mouseout onmouseover= "this.classname= ' btn3_mouseover '"
onmouseout= "This.classname=" Btn3_mouseout ' "
onmousedown=" this.classname= ' Btn3_mousedown '
onmouseup= ' this.classname= ' Btn3_mouseup '
title= "nice button" > Nice button </button>
<p>
<button class=btn_2k3 Good-looking button "> good-looking </button>
</body>
</html>