Collect messy CSS Styles!

Source: Internet
Author: User

<Style type = "text/CSS">
Body {
SCROLLBAR-FACE-COLOR: # ffffff;
SCROLLBAR-HIGHLIGHT-COLOR: # ffffff;
SCROLLBAR-SHADOW-COLOR: #999999;
SCROLLBAR-3DLIGHT-COLOR: #999999;
SCROLLBAR-ARROW-COLOR: #999999;
SCROLLBAR-TRACK-COLOR: # ffffff;
SCROLLBAR-DARKSHADOW-COLOR: # ffffff
}
. Textbox {
Font-size: 12px;
Color: #666666;
Border: 1px dashed # dddddddd;
Text-Decoration: none;
}
. Textbox_select {
Font-size: 12px;
Color: #666666;
Border: 1px dashed #666666;
Text-Decoration: none;
}
. Textbox_touch {
Font-size: 12px;
Color: #666666;
Border: 1px solid # ff7f7f;
Text-Decoration: none;
}
. Button {
Font-size: 12px;
Color: #666666;
Text-Decoration: none;
Background-color: # ffffff;
Border: 1px solid #999999;
}
. Button_select {
Font-size: 12px;
Color: # ffffff;
Text-Decoration: none;
Background-color: # cccccc;
Border: 1px solid #999999;
}
. Text01 {
Font-size: 12px;
Color: #666666;
Text-Decoration: none;
}
</Style>

 

<HTML xmlns: V>
<Head>
<Style>
V \: * {behavior: URL (# default # VML );}
</Style>
</Head>
<Body>
<V: roundrect style = "position: absolute; left: 20px; top: 50px; width: 200px; Height: 140px; "fillcolor =" # e8e8e8 "filled =" T "/>
Refresh this page to see the effect
</Body>
</Html>

<! Doctype HTML public "-// W3C // dtd html 4.01 // en" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<Head>
<Title> nifty corners: html css rounded corners </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = iso-8859-1">
<Meta name = "generator" content = "hapedit 3.1">
<Style type = "text/CSS">
Body {padding: 20px; Background-color: # FFF;
Font: 100.01% "trebuchet ms", verdana, Arial, sans-serif}
H1, H2, P {margin: 0 10px}
H1 {font-size: 250%; color: # fff}
H2. {font-size: 200%; color: # f0f0f0}
P {padding-bottom: 1em}
H2 {padding-top: 0.3em}
Div # nifty {margin: 0 10%; Background: # 9bd1fa}

B. rtop, B. rbottom {display: block; Background: # fff}
B. rtop B, B. rbottom B {display: block; Height: 1px;
Overflow: hidden; Background: # 9bd1fa}
B. R1 {margin: 0 5px}
B. R2 {margin: 0 3px}
B. R3 {margin: 0 2px}
B. rtop B. R4, B. rbottom B. R4 {margin: 0 1px; Height: 2px}
</Style>
</Head>
<Body>
<Div id = "nifty">
<B class = "rtop"> <B class = "R1"> </B> <B class = "R2"> </B> <B class = "R3"> </B> <B class = "r4"> </B>
<H1> nifty corners <P> auiiui uieiouo auuaa oiaue uaou iioiou uiio A Io ieeoai uaouoe uoiaau eeauauou U oiauuie eo ui. </P>
<H2> rounded corners without images </H2>
<P> aaeao aiieuouiu Io ueuiieu UEI oeio uooiau UUE ooiea ooiaui EUE ouue I uiaoo iouieiuia uueeo ieieuiiau
Ueaooa IOU iaeieuo uoao iauoi u I oeioooe Auo A OOE U UUO oaooaae uoa iuiuiaeu iioaeu uuiu eeu EA eouoiuo UA O. </P>
<P> iiuiuaea ouea ieuuio o I iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue II oo iei eiaiueoo iaoa euiaou uoia
Uuei UA aoauia ieoae eioiaia EU uiueeiui ueuaiuo uaa EIE oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi. </P>
<P> iueuouii EEI iueoie I iooououe eoio eeeuoeio U EU EE uueeo eiuoi iooeiu uuiei uiaeo oaaoo IUU uuuue
Auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo AIO aaiio iuouau e aoueuuie oiieae eioii oeeiu
Uaeuueuu eeue ieu. </P>
<B class = "rbottom"> <B class = "r4"> </B> <B class = "R3"> </B> <B class = "R2"> </B> <B class = "R1"> </B>
</Div>
</Body>
</Html>

 

Gradient CSS
<TD width = "963" style = "filter: progid: DXImageTransform. microsoft. gradient (startcolorstr = # 89a7ff, endcolorstr = # ffffff, gradienttype = '1') "> & nbsp; </TD>

Button style:
<Style type = text/CSS>
. Formbutton
{
Border-Right: # 7b9ebd 1px solid;
Padding-Right: 5px;
Padding-top: 2px;
Border-top: # 7b9ebd 1px solid;
Padding-left: 5px;
Font-size: 10pt;
Filter: progid: DXImageTransform. Microsoft. gradient (gradienttype = 0, startcolorstr = # ffffff, endcolorstr = # cecfde );
Border-left: # 7b9ebd 1px solid;
Cursor: hand;
Border-bottom: # 7b9ebd 1px solid
}

</Style>

 

1. dropshadow
Syntax: {filter: dropshadow (color = color, offx = offx, offy = offy, positive = positive )}
Color indicates the color of the projection, in the format of "# rrggbb"
Offx and offy represent the projection offset of the X and Y directions. An integer must be used to represent the right and bottom directions of the X axis. Negative values are opposite.
The positive parameter is a Boolean value. If the value is true (not 0), a visible projection is created for any non-transparent pixel. If the value is false (0), a visible projection is created for the transparent pixel part.
2. Shadow
Syntax: {filter: Shadow (color = color, direction = direction )}
Color indicates the shadow color in the format of "# rrggbb"
Direction is used to set the direction of projection, which is clockwise. 0 degrees indicates vertical upward, and then every 45 degrees is a unit. The default value is 270 degrees to the left. A total of 8 directions.

The usage of the two special effects is written together.
Define classes in CSS. The first is projection, and the second is shadow. You can adjust the value by yourself, which is described in detail.

. Dropshadow {filter: dropshadow (color = green, offx = 5, offy = 5, positive = 1); position: absolute; font-size: 14pt; font-weight: bolder; top: 20px; clip: rect (); left: 20px}
. Shadow {filter: Shadow (color = green, direction = 135); position: absolute; font-size: 14pt; font-weight: bolder; left: 350px; top: 20px; clip: rect ()}

Define the font.

Dropshadow-use CSS for Projection
Shadow-shadow effect with CSS
If you like it, you can view the effect color font on your own page and call it based on your preferences.

Program code
<HTML>
<Head>
<Title> www.dodocn.com </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Style type = "text/CSS">
<! --
. Dropshadow {filter: dropshadow (color = green, offx = 1, offy = 1, positive = 1); position: absolute;

Font-size: 14pt; font-weight: bolder; top: 20px; clip: rect (); left: 20px}
. Shadow {filter: Shadow (color = green, direction = 135); position: absolute; font-size: 14pt; font-weight:

Bolder; left: 350px; top: 20px; clip: rect ()}
-->
</Style>
</Head>

<Body>
<Div class = "dropshadow"> dropshadow-<a href = "http://www.dodocn.com"> with <a href = "http://www.suoxie.com /? CSS "target =" _ blank "> CSS </a> projection effect </a> </div>
<Div class = "shadow"> shadow-with <a href = "http://www.suoxie.com /? CSS "target =" _ blank "> CSS </a> shadow effect </div>
</Body>
</Html>

CSS style of the xilu community
P {Line-Height: 150%}
TD {font-family: ""; font-size: 9pt; color :# 000000}
Ul {font-size: 12px; line-Height: 180%; color: # cc0000}
. Gray {font-size: 9pt; color: #999999}
. White {color: # ffffff}
. Ora {color: # ff6600}
. White10 {font-size: 10pt; color: # ffffff}
. Orange {color: # ffcc33; font-size: 10pt; font-weight: bold}
. Y10 {color: # FFFF00; font-size: 10pt}
. B10 {color: #000000; font-size: 10pt}

A: link {color: #000000}
A: visited {color: #333399}
A: hover {color: # ff9933}

. T1 {filter: glow (color = #000000, strength = 1); font-family: ""; font-size: 12px; letter-Spacing: 1px}
. T2 {filter: glow (color = # eeeeee, strength = 1); font-family: ""; font-size: 12px; letter-Spacing: 1px}
. T3 {filter: glow (color = #094a70, strength = 1); font-family: ""; font-size: 12px; letter-Spacing: 1px}
. T5 {font-family: "verdana", "Arial", "Helvetica", "Sans-serif"; font-size: 11px}

A. G2G: link {color: # ffccff; text-Decoration: None}
A. G2G: visited {color: # ffccff; text-Decoration: None}
A. G2G: hover {color: # ffccff; text-Decoration: underline}

. FORM {background-color: # fff7ff; Height: 22px; width: 150px; Border: 1px solid; font-family: "verdana", "Arial", "Helvetica ", "Sans-serif"; font-size: 14px; color: # cc0099; border-color: 6f0037 6f0037 6f0037 #6f0037}
. Go {font-size: 12px; Background-color: # efefef; Border: 1px #666666 solid; Height: 18px; width: 45px; font-family: ""}

A. w2g1: link {color: #999999; text-Decoration: None}
A. w2g1: visited {color: #999999; text-Decoration: None}
A. w2g1: hover {color: # ffffff; text-Decoration: none; Background-color: #999999}

. Yinying {font-size: 9pt; filter: dropshadow (color = # ffffff, offx = 1, offy = 1); color: #860650; font-family: ""}
Li {font-family: "verdana", "Arial", "Helvetica", "Sans-serif"; line-Height: 150%; color: # cc0000}
Li {}

CSS implementation background image
Body {
Background-position: center 50%; font-size: 12px; Background-image: URL (http://images.51job.com/im/bg.gif); margin: 0px; Background-repeat: Repeat-y
}

<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>
<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>! Amp; nbsp;
<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>

I added a textarea to the table, but the css I wrote removed the remaining three borders, with only one scroll bar left. It's really ugly. What are some tips?
---------------------------------------------------------------
 
<Textarea style = "overflow: Auto">

Table shadow
<Table width = 238 Height = 100 align = left bordercolor = "# ff9966" bgcolor = # f3f3f3
Style = "filter: progid: DXImageTransform. Microsoft. Shadow
(Color = #333333, direction = 120, strength = 5) ">
<Tr>
<TD width = "230" bgcolor = "# ff9966"> <center>
<A href = "http://www.sucai86.com" target = "_ blank"> www.sucai86.com </a>
</Center> </TD>
</Tr>
</Table>

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.