﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-2013-随笔分类-Web Standards</title><link>http://www.cnitblog.com/2013/category/1978.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 26 Sep 2011 21:17:20 GMT</lastBuildDate><pubDate>Mon, 26 Sep 2011 21:17:20 GMT</pubDate><ttl>60</ttl><item><title>CSS position:fixed; for IE6</title><link>http://www.cnitblog.com/2013/archive/2006/03/04/7169.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Sat, 04 Mar 2006 02:20:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/03/04/7169.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/7169.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/03/04/7169.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/7169.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/7169.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: position:fixed; 是fixed的用法,配合overflow实现将一个元素定位到网页的一个位置上面,具体请看下面的例子:&lt;!DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.1//EN"&nbsp;"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt...&nbsp;&nbsp;<a href='http://www.cnitblog.com/2013/archive/2006/03/04/7169.html'>阅读全文</a><img src ="http://www.cnitblog.com/2013/aggbug/7169.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-03-04 10:20 <a href="http://www.cnitblog.com/2013/archive/2006/03/04/7169.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>根据浏览器和分辨率不同自动调用样式表</title><link>http://www.cnitblog.com/2013/archive/2006/03/03/7139.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Fri, 03 Mar 2006 08:07:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/03/03/7139.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/7139.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/03/03/7139.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/7139.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/7139.html</trackback:ping><description><![CDATA[<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #0000ff">&lt;!</SPAN><SPAN style="COLOR: #ff00ff">DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">html&nbsp;</SPAN><SPAN style="COLOR: #ff0000">xmlns</SPAN><SPAN style="COLOR: #0000ff">="http://www.w3.org/1999/xhtml"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">meta&nbsp;</SPAN><SPAN style="COLOR: #ff0000">http-equiv</SPAN><SPAN style="COLOR: #0000ff">="Content-Type"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;content</SPAN><SPAN style="COLOR: #0000ff">="text/html;&nbsp;charset=gb2312"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">根据判断浏览器类型屏幕分辨率自动调用不同CSS的代码</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">title</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">link&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">=""</SPAN><SPAN style="COLOR: #ff0000">&nbsp;rel</SPAN><SPAN style="COLOR: #0000ff">="stylesheet"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;type</SPAN><SPAN style="COLOR: #0000ff">="text/css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">script&nbsp;</SPAN><SPAN style="COLOR: #ff0000">language</SPAN><SPAN style="COLOR: #0000ff">="jscript"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;(window.navigator.userAgent.indexOf(</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">MSIE</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)<BR>{<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;IE1024</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">style1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;IE800</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">style2.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;IE1152</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;IEother</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR>ScreenWidth(IE1024,IE800,IE1152,IEother)<BR>}</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;(window.navigator.userAgent.indexOf(</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">Firefox</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&gt;=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)<BR>{<BR></SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">如果浏览器为Firefox</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Firefox1024</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">style1</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Firefox800</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">style2.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Firefox1152</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Firefoxother</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR>ScreenWidth(Firefox1024,Firefox800,Firefox1152,Firefoxother)<BR>}</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR></SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">//</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5">如果浏览器为其他</SPAN><SPAN style="COLOR: #008000; BACKGROUND-COLOR: #f5f5f5"><BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Other1024</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Other800</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Other1152</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">var</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;Otherother</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">css1.css</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">;<BR>ScreenWidth(Other1024,Other800,Other1152,Otherother)<BR>}<BR>}<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;ScreenWidth(CSS1,CSS2,CSS3,CSS4){<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;((screen.width&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1024</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;(screen.height&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">768</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)){<BR>setActiveStyleSheet(CSS1);<BR>}</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;((screen.width&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">800</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;(screen.height&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">600</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)){<BR>setActiveStyleSheet(CSS2);<BR>}</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">if</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;((screen.width&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">1152</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&amp;&amp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;(screen.height&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">==</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">864</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)){<BR>setActiveStyleSheet(CSS3);<BR>}</SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">else</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">{<BR>setActiveStyleSheet(CSS4);<BR>}}}<BR>}<BR></SPAN><SPAN style="COLOR: #0000ff; BACKGROUND-COLOR: #f5f5f5">function</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">&nbsp;setActiveStyleSheet(title){document.getElementsByTagName(</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">link</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">"</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">)[</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">0</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">].href</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">=</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">""</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">+</SPAN><SPAN style="COLOR: #000000; BACKGROUND-COLOR: #f5f5f5">title;}<BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">head</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">body</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">html</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">&nbsp;</SPAN></DIV><BR><STRONG>解释：<BR><BR></STRONG>var IE1024="";<BR>var IE800="";<BR>var IE1152="";<BR>var IEother="";<BR>引号里面分别填写，用户使用IE的时候并且分辨率为1024*768,800*600,1152*864要使用的css文件名.<BR><BR>var Firefox1024="";<BR>var Firefox800="";<BR>var Firefox1152="";<BR>var Firefoxother=""; <BR>引号里面分别填写，用户使用FF的时候并且分辨率为1024*768,800*600,1152*864要使用的css文件名.<BR><BR>var Other1024="";<BR>var Other800="";<BR>var Other1152="";<BR>var Otherother="";<BR>引号里面分别填写，用户使用其他浏览器的时候并且分辨率为1024*768,800*600,1152*864要使用的css文件名.<BR><BR><STRONG>关键代码：</STRONG><BR><BR>1.&lt;link href="" rel="stylesheet" type="text/css" /&gt;注意连接为空。<BR>2. document.getElementsByTagName("link")[0].href=""+title; 其中href中为样式表的位置，本文用了同级所以没有写。<BR>3.本文只用了两个样式，定义了不同背景色以示区别不同。 <img src ="http://www.cnitblog.com/2013/aggbug/7139.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-03-03 16:07 <a href="http://www.cnitblog.com/2013/archive/2006/03/03/7139.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>CSS 良好交互的基础</title><link>http://www.cnitblog.com/2013/archive/2006/03/03/7136.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Fri, 03 Mar 2006 08:02:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/03/03/7136.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/7136.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/03/03/7136.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/7136.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/7136.html</trackback:ping><description><![CDATA[&nbsp;macromedia关于wired使用css建构良好架构的网站的文章。里面的一些观点，从我的实际经验看，很有遵循的必要。大致归纳如下：<BR><BR><STRONG>第一条</STRONG>就是我原先提到的，先有了成品的客户确认的精确的设计以后，再去建构css。这样，可以减少你大量的不必要的返工。不要只有设计毛胚，就贸然开始css设计。在设计pure css的网站的时候，心里一定要有明确的模块化的概念。根据laytou和function做模块化的设定。 <BR><BR><STRONG>第二条</STRONG>也是我现在遵循的，很有必要的一条原则。良好组织的css文档和详细又明了的注释。在团队协调和以后自我修改的时候也可以节约大量的沟通和再回忆、解读的时间。不要把css的设定都放在一个css文件里面。我现在一般通用的做法是，一个portal css文件作为入口，把其他的css按照不同的功能放在不同的css文件里面，portal css文件import.比如fonts.css专门负责字体设定。themes.css专门负责主题类相关的设定，还有print.css, forms.css,layout.css等等不同的功能css。 <BR><BR><STRONG>第三条</STRONG>是不断的学习新的css技术和概念。多研究其他优秀的purecss站点。理解他们的应用原则。慢慢自己的css设计也会得心应手。 <img src ="http://www.cnitblog.com/2013/aggbug/7136.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-03-03 16:02 <a href="http://www.cnitblog.com/2013/archive/2006/03/03/7136.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>让文本或图片在div容器中垂直居中</title><link>http://www.cnitblog.com/2013/archive/2006/02/25/6931.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Sat, 25 Feb 2006 02:36:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/02/25/6931.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/6931.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/02/25/6931.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/6931.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/6931.html</trackback:ping><description><![CDATA[让文本或图片在div容器中垂直居中,相信这个例子很多朋友都想知道.这是在一个老外的站点发现的.<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">div&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="outer"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">div&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="middle"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">div&nbsp;</SPAN><SPAN style="COLOR: #ff0000">id</SPAN><SPAN style="COLOR: #0000ff">="inner"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;any&nbsp;text<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;any&nbsp;height<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;any&nbsp;content,&nbsp;for&nbsp;example&nbsp;generated&nbsp;from&nbsp;DB<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;everything&nbsp;is&nbsp;vertically&nbsp;centered<BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR>&nbsp;&nbsp;</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">div</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR>样式表:<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #800000">&lt;style&nbsp;type="text/css"&gt;<BR>#outer&nbsp;</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">height</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;400px</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;overflow</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;hidden</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;position</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;relative</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR>#outer[id]&nbsp;</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;table</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;position</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;static</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#middle&nbsp;</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">position</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;absolute</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;top</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;50%</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000">&nbsp;</SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;for&nbsp;explorer&nbsp;only</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR>#middle[id]&nbsp;</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">display</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;table-cell</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;vertical-align</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;middle</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;position</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;static</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#inner&nbsp;</SPAN><SPAN style="COLOR: #000000">{</SPAN><SPAN style="COLOR: #ff0000">position</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;relative</SPAN><SPAN style="COLOR: #000000">;</SPAN><SPAN style="COLOR: #ff0000">&nbsp;top</SPAN><SPAN style="COLOR: #000000">:</SPAN><SPAN style="COLOR: #0000ff">&nbsp;-50%</SPAN><SPAN style="COLOR: #000000">}</SPAN><SPAN style="COLOR: #800000">&nbsp;</SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;for&nbsp;explorer&nbsp;only&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;optional:&nbsp;#inner[id]&nbsp;{position:&nbsp;static;}&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR>&lt;/style&gt;</SPAN></DIV><img src ="http://www.cnitblog.com/2013/aggbug/6931.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-02-25 10:36 <a href="http://www.cnitblog.com/2013/archive/2006/02/25/6931.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>小型网站css标准写法</title><link>http://www.cnitblog.com/2013/archive/2006/02/23/6878.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Thu, 23 Feb 2006 05:36:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/02/23/6878.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/6878.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/02/23/6878.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/6878.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/6878.html</trackback:ping><description><![CDATA[<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">文件信息，分别为标题、作者、URL、描述、创建日期、最后修改日期-&nbsp;-<BR><BR>Title&nbsp;:&nbsp;<BR>Author&nbsp;:&nbsp;<BR>URL&nbsp;:&nbsp;<BR><BR>Description&nbsp;:&nbsp;<BR><BR>Created&nbsp;:&nbsp;<BR>Modified&nbsp;:&nbsp;<BR><BR>-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;-&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;CSS&nbsp;-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>*</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>html</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>body</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;IDS&nbsp;-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>#container</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>#primaryContent</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>#secondaryContent</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>#navigation</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000">&nbsp;&nbsp;&nbsp;&nbsp;<BR>#footer</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;CLASSES&nbsp;类-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>.hide</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>.show</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;HEADINGS&nbsp;标题-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>h1</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>h2</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>h3</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>h4</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;PARAGRAPHS&nbsp;段落-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>p</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>#primaryContent&nbsp;p</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>#secondaryContent&nbsp;p</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;QUOTES&nbsp;引用-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>blockquote</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>blockquote&nbsp;p</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>cite</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>blockquote&nbsp;cite</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;CODE&nbsp;代码-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>pre</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>code</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>p&nbsp;code</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>pre&nbsp;code</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;LISTS&nbsp;列表-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>li&nbsp;p</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>ol</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>ul</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>ol&nbsp;li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>ul&nbsp;li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#navigation&nbsp;li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#navigation&nbsp;ul</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#navigation&nbsp;ul&nbsp;li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#navigation&nbsp;ol</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>#navigation&nbsp;ol&nbsp;li</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;IMAGES&nbsp;图像-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>img</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>img&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>img&nbsp;a:hover</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;BREAK&nbsp;断行-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>hr</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;TEXT&nbsp;FORMATTING&nbsp;文本格式-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>strong</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>em</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>b</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>i</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;LINKS&nbsp;连接-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>a:hover</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>a:visited,&nbsp;a:active,&nbsp;a:focus</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>a:visited</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>a:active</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>a:focus</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR>p&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>cite&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>li&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>dt&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>dd&nbsp;a</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;TABLES&nbsp;表格-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>table</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>caption</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>thead</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>tbody</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>tfoot</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>tr</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>tr&nbsp;.alt</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>th</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>td</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;FORMS&nbsp;表单-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>form</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>fieldset</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>legend</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>label</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>input</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>textarea</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>input,&nbsp;textarea</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>select</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>optgroup</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>option</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR><BR></SPAN><SPAN style="COLOR: #008000">/*</SPAN><SPAN style="COLOR: #008000">&nbsp;-----&nbsp;DEFINITIONS&nbsp;自定义列表-----&nbsp;</SPAN><SPAN style="COLOR: #008000">*/</SPAN><SPAN style="COLOR: #800000"><BR><BR>dl</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>dt</SPAN><SPAN style="COLOR: #000000">{}</SPAN><SPAN style="COLOR: #800000"><BR>dd</SPAN><SPAN style="COLOR: #000000">{}</SPAN></DIV><img src ="http://www.cnitblog.com/2013/aggbug/6878.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-02-23 13:36 <a href="http://www.cnitblog.com/2013/archive/2006/02/23/6878.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>target="_blank"不符合标准的变通解决方法，使用JS</title><link>http://www.cnitblog.com/2013/archive/2006/02/23/6866.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Thu, 23 Feb 2006 01:58:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/02/23/6866.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/6866.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/02/23/6866.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/6866.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/6866.html</trackback:ping><description><![CDATA[不符合最新Web标准的链接代码:<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">a&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="document.html"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;target</SPAN><SPAN style="COLOR: #0000ff">="_blank"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">external&nbsp;link</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">a</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR>改为运用rel属性:<BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">a&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="document.html"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;rel</SPAN><SPAN style="COLOR: #0000ff">="external"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">external&nbsp;link</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">a</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top><SPAN style="COLOR: #000000">function&nbsp;externalLinks()&nbsp;{<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>if&nbsp;(!document.getElementsByTagName)&nbsp;return;<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>var&nbsp;anchors&nbsp;=&nbsp;document.getElementsByTagName("a");<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>for&nbsp;(var&nbsp;i=0;&nbsp;i</SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">anchors</SPAN><SPAN style="COLOR: #ff0000">.length;&nbsp;i++)&nbsp;{<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>var&nbsp;anchor&nbsp;</SPAN><SPAN style="COLOR: #0000ff">=&nbsp;anchors[i];<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top></SPAN><SPAN style="COLOR: #ff0000">if&nbsp;(anchor.getAttribute("href")&nbsp;&amp;&amp;<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>anchor.getAttribute("rel")&nbsp;</SPAN><SPAN style="COLOR: #0000ff">==&nbsp;</SPAN><SPAN style="COLOR: #ff0000">"external")<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>anchor.target&nbsp;</SPAN><SPAN style="COLOR: #0000ff">=&nbsp;"_blank"</SPAN><SPAN style="COLOR: #ff0000">;<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>}<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>}<BR><IMG src="http://www.cnitblog.com/images/OutliningIndicators/None.gif" align=top>window.onload&nbsp;</SPAN><SPAN style="COLOR: #0000ff">=&nbsp;externalLinks;&nbsp;</SPAN></DIV><img src ="http://www.cnitblog.com/2013/aggbug/6866.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-02-23 09:58 <a href="http://www.cnitblog.com/2013/archive/2006/02/23/6866.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>完整xhtml的结构标签</title><link>http://www.cnitblog.com/2013/archive/2006/02/23/6865.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Thu, 23 Feb 2006 01:55:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/02/23/6865.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/6865.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/02/23/6865.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/6865.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/6865.html</trackback:ping><description><![CDATA[<STRONG>结构<BR></STRONG>body, head, html, title <BR><B>文本</B> <BR>abbr, acronym, address, blockquote, br, cite, code, dfn, div, em, h1, h2, h3, h4, h5, h6, kbd, p, pre, q, samp, span, strong, var <BR><B>链接</B> <BR>a <BR><B>列表</B><BR>dl, dt, dd, ol, ul, li <BR><B>表单</B><BR>form, input, label, select, option, textarea <BR><B>表格</B><BR>caption, table, td, th, tr <BR><B>图片</B><BR>img <BR><B>对象</B><BR>object, param <BR><B>meta</B><BR>meta <BR><B>外部调用</B><BR>link <BR><B>基本</B><BR>base<BR><BR><SPAN style="FONT-SIZE: 16pt"><B>xhtml不鼓励使用的标签</B></SPAN><BR><BR>能通过过渡定义的标签，但通不过严格定义。<BR>&lt;font&gt; 文字的外观，大小和颜色（Defines the font face, size, and color of text）<BR>&lt;u&gt; 文本下划线（Defines underlined text）<BR>&lt;center&gt; 句中对齐（Defines centered text）<BR>&lt;s&gt; 删除线（Defines strikethrough text）<BR>&lt;strike&gt; 删除线（Defines strikethrough text）<BR>&lt;noframes&gt; 无视框时的内容（Defines a noframe section）<BR>&lt;iframe&gt; 定义嵌入视图（Defines an inline sub window (frame)）<BR>&lt;isindex&gt; 不建议使用（可搜寻，使用input代替）（Deprecated. Defines a single-line input field. Use &lt;input&gt; instead）<BR>&lt;dir&gt; 目录式列举（Defines a directory list）<BR>&lt;menu&gt; 菜单列表（Defines a menu list）<BR>&lt;basefont /&gt; 定义基本字体（Defines a base font）<BR>&lt;applet&gt; 定义java程序（Defines an applet）<BR><BR>能通过框架定义验证，不鼓励使用<BR>&lt;frame&gt; 定义个别视框（Defines a sub window (a frame)）<BR>&lt;frameset&gt; 视框格式总定义（Defines a set of frames） <img src ="http://www.cnitblog.com/2013/aggbug/6865.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-02-23 09:55 <a href="http://www.cnitblog.com/2013/archive/2006/02/23/6865.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>动态更改CSS-换肤技术</title><link>http://www.cnitblog.com/2013/archive/2006/02/23/6864.html</link><dc:creator>2013抽屉</dc:creator><author>2013抽屉</author><pubDate>Thu, 23 Feb 2006 01:51:00 GMT</pubDate><guid>http://www.cnitblog.com/2013/archive/2006/02/23/6864.html</guid><wfw:comment>http://www.cnitblog.com/2013/comments/6864.html</wfw:comment><comments>http://www.cnitblog.com/2013/archive/2006/02/23/6864.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/2013/comments/commentRss/6864.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/2013/services/trackbacks/6864.html</trackback:ping><description><![CDATA[<A HREF="/Files/2013/styleswitcher.zip">styleswitcher.js 点击下载</A><BR><FONT size=2>(下载此文件并更名为styleswitcher.js)<BR><BR></FONT><FONT size=3><STRONG>引用 </STRONG><U><STRONG>head区需要的内容</STRONG> <BR><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">link&nbsp;</SPAN><SPAN style="COLOR: #ff0000">rel</SPAN><SPAN style="COLOR: #0000ff">="stylesheet"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;type</SPAN><SPAN style="COLOR: #0000ff">="text/css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;href</SPAN><SPAN style="COLOR: #0000ff">="paul.css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;title</SPAN><SPAN style="COLOR: #0000ff">="bog&nbsp;standard"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">link&nbsp;</SPAN><SPAN style="COLOR: #ff0000">rel</SPAN><SPAN style="COLOR: #0000ff">="alternate&nbsp;stylesheet"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;type</SPAN><SPAN style="COLOR: #0000ff">="text/css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;href</SPAN><SPAN style="COLOR: #0000ff">="paul.css"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;title</SPAN><SPAN style="COLOR: #0000ff">="wacky"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;</SPAN><SPAN style="COLOR: #0000ff">/&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">script&nbsp;</SPAN><SPAN style="COLOR: #ff0000">type</SPAN><SPAN style="COLOR: #0000ff">="text/javascript"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;src</SPAN><SPAN style="COLOR: #0000ff">="styleswitcher.js"</SPAN><SPAN style="COLOR: #0000ff">&gt;&lt;/</SPAN><SPAN style="COLOR: #800000">script</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV><BR></U><STRONG>引用 </STRONG><U><STRONG>控制CSS的切换 <BR></STRONG><BR>
<DIV style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">a&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="#"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;onclick</SPAN><SPAN style="COLOR: #0000ff">="setActiveStyleSheet('default');return&nbsp;false;"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">change&nbsp;style&nbsp;to&nbsp;default</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">a</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000"><BR></SPAN><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">a&nbsp;</SPAN><SPAN style="COLOR: #ff0000">href</SPAN><SPAN style="COLOR: #0000ff">="#"</SPAN><SPAN style="COLOR: #ff0000">&nbsp;onclick</SPAN><SPAN style="COLOR: #0000ff">="setActiveStyleSheet('paul');return&nbsp;false;"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN><SPAN style="COLOR: #000000">change&nbsp;style&nbsp;to&nbsp;paul</SPAN><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">a</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></DIV></U></FONT><BR>更改CSS不需要刷新面面，而且还会用cookie保存你的偏好设置 <img src ="http://www.cnitblog.com/2013/aggbug/6864.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/2013/" target="_blank">2013抽屉</a> 2006-02-23 09:51 <a href="http://www.cnitblog.com/2013/archive/2006/02/23/6864.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>