|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
层叠样式表(CascadingStyleSheets)的缩写,用于定义HTML元素的显示形式,是W3C推出的格式化网页内容的标准技术。网页设计者必须掌握的技术之一。
以下是援用片断:
<styletype="text/CSS">
.menu{
font-family:verdana,sans-serif;
width:750px;
position:relative;
font-size:0.85em;
padding-bottom:250px;
}
.menuul{
padding:0;
margin:0;
list-style-type:none;
}
.menuulli{
float:left;
position:relative;
}
.menuullia,.menuullia:visited{
display:block;
text-decoration:none;
color:#000;
width:139px;
height:3em;
color:#000;
border:1pxsolid#fff;
border-width:1px1px00;
background:#dfc184;
padding-left:10px;
line-height:3em;
}
*html.menuullia,.menuullia:visited{
width:149px;
w/idth:139px;
}
.menuulliul{
display:none;
}
table{
margin:-1px;
border-collapse:collapse;
font-size:1em;
}
/*specifictononIEbrowsers*/
.menuulli:hovera{
color:#fff;
background:#bd8d5e;
}
.menuulli:hoverul{
display:block;
position:absolute;
top:3em;
margin-top:1px;
left:0;
width:150px;
}
.menuulli:hoverulliul{
display:none;
}
.menuulli:hoverullia{
display:block;
background:#faeec7;
color:#000;
height:auto;
line-height:1.2em;
padding:5px10px;
width:129px
}
.menuulli:hoverullia.drop{
background:#c9c9a7url(../../graphics/drop.gif)bottomrightno-repeat;
}
.menuulli:hoverullia:hover{
background:#c9c9a7;
color:#000;
}
.menuulli:hoverulli:hoverul{
display:block;
position:absolute;
left:150px;
top:0;
width:150px;
}
.menuulli:hoverulli:hoverul.left{
left:-150px;
}
</style>
<!--[iflteIE6]>
<styletype="text/css">
.menuullia:hover{
color:#fff;
background:#bd8d5e;
}
.menuullia:hoverul{
display:block;
position:absolute;
top:3em;
left:0;
background:#fff;
margin-top:0;
marg/in-top:1px;
}
.menuullia:hoverullia{
display:block;
background:#dbe4ab;
color:#000;
height:auto;
line-height:1.5em;
padding:5px10px;
width:150px;
w/idth:129px;
}
.menuullia:hoverullia.drop{
background:#c9c9a7url(../../graphics/drop.gif)bottomrightno-repeat;
}
.menuullia:hoverulliaul{
visibility:hidden;
position:absolute;
height:0;
width:0;
}
.menuullia:hoverullia:hover{
background:#c9c9a7;color:#000;
}
.menuullia:hoverullia:hoverul{
visibility:visible;
position:absolute;
top:0;
color:#000;
left:150px;
}
.menuullia:hoverullia:hoverul.left{
left:-150px;
}
</style>
<![endif]-->
<divclass="menu">
<ul>
<li><aclass="drop"href="../menu/index.html">DEMOS
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="../menu/zero_dollars.html"title="Thezerodollaradspage">zerodollarsadvertisingpage</a></li>
<li><ahref="../menu/embed.html"title="Wrappingtextaroundimages">wrappingtextaroundimages</a></li>
<li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li>
<li><ahref="../menu/nodots.html"title="Removingactive/focusborders">activefocus</a></li>
<li><aclass="drop"href="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/clickwithnoborders
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li>
<li><ahref="../menu/nodots.html"title="Removingactive/focusborders">removingactive/focusborders</a></li>
<li><ahref="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/click</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
<liclass="upone"><ahref="../menu/shadow_boxing.html"title="Multi-positiondropshadow">shadowboxing</a></li>
<li><ahref="../menu/old_master.html"title="ImageMapfordetailedinformation">imagemapfordetailedinformation</a></li>
<li><ahref="../menu/bodies.html"title="funwithbackgroundimages">funwithbackgroundimages</a></li>
<li><ahref="../menu/fade_scroll.html"title="fade-outscrolling">fadescrolling</a></li>
<li><ahref="../menu/em_images.html"title="emsizeimagescompared">emimagesizescompared</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
<li><ahref="../boxes/index.html">BOXES
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="spies.html"title="acodedlistofspies">acodedlistofspies</a></li>
<li><ahref="vertical.html"title="ahorizontalverticalmenu">verticalmenu</a></li>
<li><ahref="expand.html"title="anenlargingunorderedlist">enlargingunorderedlist</a></li>
<li><ahref="enlarge.html"title="anunorderedlistwithlinkimages">linkimages</a></li>
<li><ahref="cross.html"title="non-rectangularlinks">non-rectangular</a></li>
<li><ahref="jigsaw.html"title="jigsawlinks">jigsawlinks</a></li>
<li><ahref="circles.html"title="circularlinks">circularlinks</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
<li><ahref="../mozilla/index.html">MOZILLA
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="../mozilla/dropdown.html"title="Adropdownmenu">dropdownmenu</a></li>
<li><ahref="../mozilla/cascade.html"title="Acascadingmenu">cascadingmenu</a></li>
<li><ahref="../mozilla/content.html"title="Usingcontent:">content:</a></li>
<li><ahref="../mozilla/moxbox.html"title=":hoverappliedtoadiv">mozziebox</a></li>
<li><ahref="../mozilla/rainbow.html"title="Icanbuildarainbow">Icanbuildarainbowwithtransparentborders</a></li>
<li><ahref="../mozilla/snooker.html"title="Snookercue">asnookercueusingborderart</a></li>
<li><ahref="../mozilla/target.html"title="TargetPractise">targetpractise</a></li>
<li><ahref="../mozilla/splittext.html"title="Twotoneheadings">twotoneheadings</a></li>
<li><ahref="../mozilla/shadow_text.html"title="Shadowtext">shadowtext</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
<li><ahref="../ie/index.html">EXPLORER
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="../ie/exampleone.html"title="Exampleone">thefirstexampleforInternetExplorer</a></li>
<li><ahref="../ie/weft.html"title="Weftfonts">weftfonts</a></li>
<li><ahref="../ie/exampletwo.html"title="Verticalalign">verticallyaligningtext</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
<li><ahref="../opacity/index.html">OPACITY
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ul>
<li><ahref="../opacity/colours.html"title="colourwheel">acolourwheelusingopaquecolours</a></li>
<li><ahref="../opacity/picturemenu.html"title="amenuusingopacity">amenuusingopacity</a></li>
<li><ahref="../opacity/png.html"title="partialopacity">partialopacity</a></li>
<li><ahref="../opacity/png2.html"title="partialopacityII">partialopacityII</a></li>
<li><aclass="drop"href="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">HOVER/CLICK
<!--[ifIE7]><!-->
</a>
<!--<![endif]-->
<table><tr><td>
<ulclass="left">
<li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li>
<li><ahref="../menu/nodots.html"title="Removingactive/focusborders">removingactive/focusborders</a></li>
<li><ahref="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/click</a></li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
</ul>
</td></tr></table>
<!--[iflteIE6]>
</a>
<![endif]-->
</li>
</ul>
</div><styletype="text/css">.menu{font-family:verdana,sans-serif;width:750px;position:relative;font-size:0.85em;padding-bottom:250px;}.menuul{padding:0;margin:0;list-style-type:none;}.menuulli{float:left;position:relative;}.menuullia,.menuullia:visited{display:block;text-decoration:none;color:#000;width:139px;height:3em;color:#000;border:1pxsolid#fff;border-width:1px1px00;background:#dfc184;padding-left:10px;line-height:3em;}*html.menuullia,.menuullia:visited{width:149px;w/idth:139px;}.menuulliul{display:none;}table{margin:-1px;border-collapse:collapse;font-size:1em;}/*specifictononIEbrowsers*/.menuulli:hovera{color:#fff;background:#bd8d5e;}.menuulli:hoverul{display:block;position:absolute;top:3em;margin-top:1px;left:0;width:150px;}.menuulli:hoverulliul{display:none;}.menuulli:hoverullia{display:block;background:#faeec7;color:#000;height:auto;line-height:1.2em;padding:5px10px;width:129px}.menuulli:hoverullia.drop{background:#c9c9a7url(../../graphics/drop.gif)bottomrightno-repeat;}.menuulli:hoverullia:hover{background:#c9c9a7;color:#000;}.menuulli:hoverulli:hoverul{display:block;position:absolute;left:150px;top:0;width:150px;}.menuulli:hoverulli:hoverul.left{left:-150px;}</style><!--[iflteIE6]><styletype="text/css">.menuullia:hover{color:#fff;background:#bd8d5e;}.menuullia:hoverul{display:block;position:absolute;top:3em;left:0;background:#fff;margin-top:0;marg/in-top:1px;}.menuullia:hoverullia{display:block;background:#dbe4ab;color:#000;height:auto;line-height:1.5em;padding:5px10px;width:150px;w/idth:129px;}.menuullia:hoverullia.drop{background:#c9c9a7url(../../graphics/drop.gif)bottomrightno-repeat;}.menuullia:hoverulliaul{visibility:hidden;position:absolute;height:0;width:0;}.menuullia:hoverullia:hover{background:#c9c9a7;color:#000;}.menuullia:hoverullia:hoverul{visibility:visible;position:absolute;top:0;color:#000;left:150px;}.menuullia:hoverullia:hoverul.left{left:-150px;}</style><![endif]--><divclass="menu"><ul><li><aclass="drop"href="../menu/index.html">DEMOS<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="../menu/zero_dollars.html"title="Thezerodollaradspage">zerodollarsadvertisingpage</a></li><li><ahref="../menu/embed.html"title="Wrappingtextaroundimages">wrappingtextaroundimages</a></li><li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li><li><ahref="../menu/nodots.html"title="Removingactive/focusborders">activefocus</a></li><li><aclass="drop"href="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/clickwithnoborders<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li><li><ahref="../menu/nodots.html"title="Removingactive/focusborders">removingactive/focusborders</a></li><li><ahref="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/click</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li><liclass="upone"><ahref="../menu/shadow_boxing.html"title="Multi-positiondropshadow">shadowboxing</a></li><li><ahref="../menu/old_master.html"title="ImageMapfordetailedinformation">imagemapfordetailedinformation</a></li><li><ahref="../menu/bodies.html"title="funwithbackgroundimages">funwithbackgroundimages</a></li><li><ahref="../menu/fade_scroll.html"title="fade-outscrolling">fadescrolling</a></li><li><ahref="../menu/em_images.html"title="emsizeimagescompared">emimagesizescompared</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li><li><ahref="../boxes/index.html">BOXES<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="spies.html"title="acodedlistofspies">acodedlistofspies</a></li><li><ahref="vertical.html"title="ahorizontalverticalmenu">verticalmenu</a></li><li><ahref="expand.html"title="anenlargingunorderedlist">enlargingunorderedlist</a></li><li><ahref="enlarge.html"title="anunorderedlistwithlinkimages">linkimages</a></li><li><ahref="cross.html"title="non-rectangularlinks">non-rectangular</a></li><li><ahref="jigsaw.html"title="jigsawlinks">jigsawlinks</a></li><li><ahref="circles.html"title="circularlinks">circularlinks</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li><li><ahref="../mozilla/index.html">MOZILLA<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="../mozilla/dropdown.html"title="Adropdownmenu">dropdownmenu</a></li><li><ahref="../mozilla/cascade.html"title="Acascadingmenu">cascadingmenu</a></li><li><ahref="../mozilla/content.html"title="Usingcontent:">content:</a></li><li><ahref="../mozilla/moxbox.html"title=":hoverappliedtoadiv">mozziebox</a></li><li><ahref="../mozilla/rainbow.html"title="Icanbuildarainbow">Icanbuildarainbowwithtransparentborders</a></li><li><ahref="../mozilla/snooker.html"title="Snookercue">asnookercueusingborderart</a></li><li><ahref="../mozilla/target.html"title="TargetPractise">targetpractise</a></li><li><ahref="../mozilla/splittext.html"title="Twotoneheadings">twotoneheadings</a></li><li><ahref="../mozilla/shadow_text.html"title="Shadowtext">shadowtext</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li><li><ahref="../ie/index.html">EXPLORER<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="../ie/exampleone.html"title="Exampleone">thefirstexampleforInternetExplorer</a></li><li><ahref="../ie/weft.html"title="Weftfonts">weftfonts</a></li><li><ahref="../ie/exampletwo.html"title="Verticalalign">verticallyaligningtext</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li><li><ahref="../opacity/index.html">OPACITY<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ul><li><ahref="../opacity/colours.html"title="colourwheel">acolourwheelusingopaquecolours</a></li><li><ahref="../opacity/picturemenu.html"title="amenuusingopacity">amenuusingopacity</a></li><li><ahref="../opacity/png.html"title="partialopacity">partialopacity</a></li><li><ahref="../opacity/png2.html"title="partialopacityII">partialopacityII</a></li><li><aclass="drop"href="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">HOVER/CLICK<!--[ifIE7]><!--></a><!--<![endif]--><table><tr><td><ulclass="left"><li><ahref="../menu/form.html"title="Stylingforms">styledform</a></li><li><ahref="../menu/nodots.html"title="Removingactive/focusborders">removingactive/focusborders</a></li><li><ahref="../menu/hover_click.html"title="Hover/clickwithnoactive/focusborders">hover/click</a></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li></ul></td></tr></table><!--[iflteIE6]></a><![endif]--></li></ul></div><scriptlanguage="Javascript">varnow=newDate();document.write("</noscript></p>
提高易用性。使用CSS可以结构化HTML,例如:标签只用来控制段落,heading标签只用来控制标题,table标签只用来表现格式化的数据等等。 |
|