CSS Definition page Layout Nice button button code

Source: Internet
Author: User
Keywords Web page production CSS Tutorials
Tags button class code html http microsoft public w3c

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>
 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.