最实用的12条css技巧

<p style="background-color: #eee;">非原创,来源网络,英文版原文: <a title="最实用的css技巧" href="http://stylizedweb.com/2008/03/12/most-used-css-tricks/" target="_blank">http://stylizedweb.com/2008/03/12/most-used-css-tricks/</a><br></p>
<h4>1:Rounded corners without images</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick01.gif"></a><br>
Rounded corners without images</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;divid=”container”&gt;<br>
&lt;bclass=”rtop”&gt;<br>
&lt;bclass=”r1″&gt;&lt;/b&gt;&lt;bclass=”r2″&gt;&lt;/b&gt;&lt;bclass=”r3″&gt;&lt;/b&gt;&lt;bclass=”r4″&gt;&lt;/b&gt;<br>
&lt;/b&gt;<br>
&lt;!–contentgoeshere–&gt;<br>
&lt;bclass=”rbottom”&gt;<br>
&lt;bclass=”r4″&gt;&lt;/b&gt;&lt;bclass=”r3″&gt;&lt;/b&gt;&lt;bclass=”r2″&gt;&lt;/b&gt;&lt;bclass=”r1″&gt;&lt;/b&gt;<br>
&lt;/b&gt;<br>
&lt;/div&gt;<br><br>
.rtop,.rbottom</span><span style="color: #000000;">{</span><span style="color: #ff0000;">display</span><span style="color: #000000;">:</span><span style="color: #0000ff;">block</span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.rtop*,.rbottom*</span><span style="color: #000000;">{</span><span style="color: #ff0000;">display</span><span style="color: #000000;">:</span><span style="color: #0000ff;">block</span><span style="color: #000000;">;</span><span style="color: #ff0000;">height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">1px</span><span style="color: #000000;">;</span><span style="color: #ff0000;">overflow</span><span style="color: #000000;">:</span><span style="color: #0000ff;">hidden</span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.r1</span><span style="color: #000000;">{</span><span style="color: #ff0000;">margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">05px</span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.r2</span><span style="color: #000000;">{</span><span style="color: #ff0000;">margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">03px</span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.r3</span><span style="color: #000000;">{</span><span style="color: #ff0000;">margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">02px</span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.r4</span><span style="color: #000000;">{</span><span style="color: #ff0000;">margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">01px</span><span style="color: #000000;">;</span><span style="color: #ff0000;">height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">2px</span><span style="color: #000000;">}</span><span style="color: #800000;"><br></span>
</div>
<h4>2:Style your order list</h4>
<div class="floatRPic">
<h5>效果图——</h5>
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick02.gif"></a><br>
Style your order list</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; margin-bottom: 15px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 400px; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;ol&gt;<br>
&lt;li&gt;<br>
&lt;p&gt;Thisislineone&lt;/p&gt;<br>
&lt;/li&gt;<br>
&lt;li&gt;<br>
&lt;p&gt;Hereislinetwo&lt;/p&gt;<br>
&lt;/li&gt;<br>
&lt;li&gt;<br>
&lt;p&gt;Andlastline&lt;/p&gt;<br>
&lt;/li&gt;<br>
&lt;/ol&gt;<br><br>
ol</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
font</span><span style="color: #000000;">:</span><span style="color: #0000ff;">italic1emGeorgia,Times,serif</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
color</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#999999</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
olp</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
font</span><span style="color: #000000;">:</span><span style="color: #0000ff;">normal.8emArial,Helvetica,sans-serif</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
color</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#000000</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>
<h4>3:Tableless forms</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick03.gif"></a><br>
Tableless forms</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;form&gt;<br>
&lt;labelfor=”name”&gt;Name&lt;/label&gt;<br>
&lt;inputid=”name”name=”name”&gt;&lt;br&gt;<br>
&lt;labelfor=”address”&gt;Address&lt;/label&gt;<br>
&lt;inputid=”address”name=”address”&gt;&lt;br&gt;<br>
&lt;labelfor=”city”&gt;City&lt;/label&gt;<br>
&lt;inputid=”city”name=”city”&gt;&lt;br&gt;<br>
&lt;/form&gt;<br><br>
label,input</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
display</span><span style="color: #000000;">:</span><span style="color: #0000ff;">block</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">150px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
float</span><span style="color: #000000;">:</span><span style="color: #0000ff;">left</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
margin-bottom</span><span style="color: #000000;">:</span><span style="color: #0000ff;">10px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
label</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
text-align</span><span style="color: #000000;">:</span><span style="color: #0000ff;">right</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">75px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
padding-right</span><span style="color: #000000;">:</span><span style="color: #0000ff;">20px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
br</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
clear</span><span style="color: #000000;">:</span><span style="color: #0000ff;">left</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>
<h4>4:Double blockquote</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick04.gif"></a><br>
Double blockquote</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">blockquote:first-letter</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">url(images/open-quote.gif)no-repeatlefttop</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
padding-left</span><span style="color: #000000;">:</span><span style="color: #0000ff;">18px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
font</span><span style="color: #000000;">:</span><span style="color: #0000ff;">italic1.4emGeorgia,“TimesNewRoman”,Times,serif</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>
<h4>5:Gradient text effect</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick05.gif"></a><br>
Double blockquote</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;h1&gt;&lt;span&gt;&lt;/span&gt;CSSGradientText&lt;/h1&gt;<br><br>
h1</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
font</span><span style="color: #000000;">:</span><span style="color: #0000ff;">bold330%/100%“LucidaGrande”</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
position</span><span style="color: #000000;">:</span><span style="color: #0000ff;">relative</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
color</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#464646</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
h1span</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">url(gradient.png)repeat-x</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
position</span><span style="color: #000000;">:</span><span style="color: #0000ff;">absolute</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
display</span><span style="color: #000000;">:</span><span style="color: #0000ff;">block</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">100%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">31px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
&lt;!–[ifltIE7]&gt;<br>
&lt;style&gt;<br>
h1span</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">none</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
filter</span><span style="color: #000000;">:</span><span style="color: #0000ff;">progid:DXImageTransform.Microsoft.AlphaImageLoader(src=’gradient.png’,sizingMethod=’scale’)</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
&lt;/style&gt;</span>
</div>
<h4>6:Vertical centering with line-height</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick06.gif"></a><br>
Vertical centering with line-height</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">div</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">100px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
div*</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">0</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
divp</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
line-height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">100px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
&lt;p&gt;Contenthere&lt;/p&gt;</span>
</div>
<h4>7:Rounded corners with images</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick07.gif"></a><br>
Rounded corners with images</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;divclass=”roundcont”&gt;<br>
&lt;divclass=”roundtop”&gt;<br>
&lt;imgsrc=”tl.gif”alt=”"<br>
width=”15″height=”15″class=”corner”<br>
style=”display:none”/&gt;<br>
&lt;/div&gt;<br><br>
CONTENT<br><br>
&lt;divclass=”roundbottom”&gt;<br>
&lt;imgsrc=”bl.gif”alt=”"<br>
width=”15″height=”15″class=”corner”<br>
style=”display:none”/&gt;<br>
&lt;/div&gt;<br>
&lt;/div&gt;<br><br>
.roundcont</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">250px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
background-color</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#f90</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
color</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#fff</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
.roundcontp</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">010px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
.roundtop</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">url(tr.gif)no-repeattopright</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
.roundbottom</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">url(br.gif)no-repeattopright</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
img.corner</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">15px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
height</span><span style="color: #000000;">:</span><span style="color: #0000ff;">15px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
border</span><span style="color: #000000;">:</span><span style="color: #0000ff;">none</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
display</span><span style="color: #000000;">:</span><span style="color: #0000ff;">block!important</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span>
</div>
<h4>8:Multiple class name</h4>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;imgsrc="image.gif"class="class1class2"alt=""/&gt;<br><br>
.class1</span><span style="color: #000000;">{</span><span style="color: #ff0000;">border</span><span style="color: #000000;">:</span><span style="color: #0000ff;">2pxsolid#666</span><span style="color: #000000;">;</span><span style="color: #ff0000;"></span><span style="color: #000000;">}</span><span style="color: #800000;"><br>
.class2</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
padding</span><span style="color: #000000;">:</span><span style="color: #0000ff;">2px</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
background</span><span style="color: #000000;">:</span><span style="color: #0000ff;">#ff0</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>
<h4>9:Center horizontally</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick09.gif"></a><br>
Center horizontally</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;divid=”container”&gt;&lt;/div&gt;<br>
#container</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
margin</span><span style="color: #000000;">:</span><span style="color: #0000ff;">0pxauto</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br></span>
</div>
<h4>10:CSS Drop Caps</h4>
<h5>效果图——</h5>
<div class="floatMPic">
<a title="web标准设计" href="http://justinyoung.cnblogs.com/" target="_blank"><img alt="web标准设计" src="http://images.cnblogs.com/cnblogs_com/justinyoung/2008_1q/csstrick10.gif"></a><br>
CSS Drop Caps</div>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">&lt;pclass=”introduction”&gt;Thisparagraphhastheclass“introduction”.Ifyourbrowsersupportsthepseudo-class“first-letter”,thefirstletterwillbeadrop-cap.&lt;/p&gt;<br><br>
p.introduction:first-letter</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
font-size</span><span style="color: #000000;">:</span><span style="color: #0000ff;">300%</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
font-weight</span><span style="color: #000000;">:</span><span style="color: #0000ff;">bold</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
float</span><span style="color: #000000;">:</span><span style="color: #0000ff;">left</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br>
width</span><span style="color: #000000;">:</span><span style="color: #0000ff;">1em</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>
<h4>11:Prevent line breaks in links, oversized content to brake</h4>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">a</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
white-space</span><span style="color: #000000;">:</span><span style="color: #0000ff;">nowrap</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
#main</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
overflow</span><span style="color: #000000;">:</span><span style="color: #0000ff;">hidden</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span>
</div>
<h4>12:Show firefox scrollbar, remove textarea scrollbar in IE</h4>
<div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; margin: 15px auto; border-left: #cccccc 1px solid; width: 95%; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee;">
<span style="color: #800000;">html</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
overflow</span><span style="color: #000000;">:</span><span style="color: #0000ff;">-moz-scrollbars-vertical</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"><br><br>
textarea</span><span style="color: #000000;">{</span><span style="color: #ff0000;"><br>
overflow</span><span style="color: #000000;">:</span><span style="color: #0000ff;">auto</span><span style="color: #000000;">;</span><span style="color: #ff0000;"><br></span><span style="color: #000000;">}</span><span style="color: #800000;"></span>
</div>

你可能感兴趣的:(css)