Common CSS code

Source: Internet
Author: User
How to Use CSS to create a horizontal menu?

Http://www.w3cn.org/article/tips/2005/105.html
Examples of defining titles with CSS

Http://www.w3cn.org/article/translate/2005/111.html
Http://css.maxdesign.com.au/floatutorial/detailed floating float description, very good
18-way CSS skills
Http://lpjcom.blog.sace.cn/blog/css18

Dedicated http://www.zcool.com.cn/jscode/ site Code
Http://www.3cpa.com/script/ Effects
Http://www.zcool.com.cn/jscode/css_html/20060904/113313.html
<HTML>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> several very nice buttons implemented by CSS </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 = #9 dbcea); 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 = "Nice button"> nice button </button>
<P>
<Button class = btn3_mouseout onmouseover = "This. classname = 'btn3 _ mouseover '"
Onmouseout = "This. classname = 'btn3 _ mouseout '"
Onmousedown = "This. classname = 'btn3 _ mouselow '"
Onmouseup = "This. classname = 'btn3 _ mouseup '"
Title = "Nice button"> nice button </button>
<P>
<Button class = btn_2k3 Title = "Nice button"> nice button </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.