<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Crazy Ben's Blog</title>
	<atom:link href="http://www.ossi.cn/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ossi.cn</link>
	<description>消失的，记住了，我站在海角天涯</description>
	<lastBuildDate>Fri, 06 Jan 2012 05:10:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>OFFICE图标消失的解决方法</title>
		<link>http://www.ossi.cn/2012-01/office-icon/</link>
		<comments>http://www.ossi.cn/2012-01/office-icon/#comments</comments>
		<pubDate>Fri, 06 Jan 2012 05:09:50 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[知识口袋]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=730</guid>
		<description><![CDATA[注明，本方法适用于清理电脑垃圾文件后引起Office图标消失，变成未关联状态的情况修复。 前两天用的都没有问题，今天用WIN7优化大师清理了一下C盘，做了个瘦身，找到一个Installer文件夹，明明写着可以安全删除的，结果发现真是泥马的坑爹啊。清理过后Ofiice图标不见了，doc和ppt之类的文件都是windows无法识别文件图标，但经检查后缀名没错，而且开始菜单里的程序组里office里的word、excel等图标也是无法识别的，双击也能打开，就是没有图标，经网上查询，出问题的解决方法，希望有遇到类似情况的网友们可以借鉴此例。 解决方法：Office 程序图标丢失是因为C:\WINDOWS\Installer\中的Office图标目录被删除导致，其中的{90120000-0011-0000-0000-0000000FF1CE}文件夹中的文件就包含了Office 2007程序的图标。你只需去其他安装同版本有Office的电脑上将这个文件夹拷贝过来即可。 我这里是以Office 2007为例的，据说office2003的图标是在C:\WINDOWS\Installer\{90110804-6000-11D3-8CFE-0150048383C9}，大家可以去验证一下。其实可以直接打开Installer中的那些以数字开头的文件夹找一下就行了，看到哪个里面有Office的图标就是他了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="10个最佳jQuery Lightbox效果插件收集" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-01%2F10-jquery-lightbox%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093169.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">10个最佳jQuery Lightbox效果插件收集</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="YUI--Life 音乐MV" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-04%2Fyui-lifeyinlemv%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13094053.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">YUI--Life 音乐MV</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="The Art of Flight" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-03%2Fthe-art-of-flight%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093152.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">The Art of Flight</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="明天你是否会想起昨天你写的日记？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-05%2Fschoolmate%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13094085.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">明天你是否会想起昨天你写的日记？</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="4minute力量 泫雅solo Change高清中韩字幕MV" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2010-03%2Fsolo-change-mv%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093491.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">4minute力量 泫雅solo Change高清中韩字幕MV</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><span style="color: #3366ff;">注明，本方法适用于清理电脑垃圾文件后引起Office图标消失，变成未关联状态的情况修复。</span></p>
<p>前两天用的都没有问题，今天用WIN7优化大师清理了一下C盘，做了个瘦身，找到一个Installer文件夹，明明写着可以安全删除的，结果发现真是泥马的坑爹啊。清理过后Ofiice图标不见了，doc和ppt之类的文件都是windows无法识别文件图标，但经检查后缀名没错，而且开始菜单里的程序组里office里的word、excel等图标也是无法识别的，双击也能打开，就是没有图标，经网上查询，出问题的解决方法，希望有遇到类似情况的网友们可以借鉴此例。</p>
<p>解决方法：Office 程序图标丢失是因为C:\WINDOWS\Installer\中的Office图标目录被删除导致，其中的{90120000-0011-0000-0000-0000000FF1CE}文件夹中的文件就包含了Office 2007程序的图标。你只需去其他安装同版本有Office的电脑上将这个文件夹拷贝过来即可。 我这里是以Office 2007为例的，据说office2003的图标是在C:\WINDOWS\Installer\{90110804-6000-11D3-8CFE-0150048383C9}，大家可以去验证一下。其实可以直接打开Installer中的那些以数字开头的文件夹找一下就行了，看到哪个里面有Office的图标就是他了。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="欢迎您来到谷歌搜索在中国的新家" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2010-03%2Fgoogle-china-new%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093438.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">欢迎您来到谷歌搜索在中国的新家</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="漫画解析BMW的由来" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2010-02%2Fbmw-user-experience%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093707.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">漫画解析BMW的由来</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="The Art of Flight" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-03%2Fthe-art-of-flight%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13093152.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">The Art of Flight</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="64K大小的绚丽长时间3D动画." style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2F64k3d%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13094042.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">64K大小的绚丽长时间3D动画.</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="YUI - feel my soul" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-03%2Fyui-feel-my-soul%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2012-01%2Foffice-icon%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/18/13094016.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">YUI - feel my soul</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2012-01/office-icon/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Html5新标签解释及用法</title>
		<link>http://www.ossi.cn/2011-12/html5-new-tag/</link>
		<comments>http://www.ossi.cn/2011-12/html5-new-tag/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 06:52:15 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=722</guid>
		<description><![CDATA[HTML 5 是一个新的网络标准，目标在于取代现有的 HTML 4.01, XHTML 1.0 and DOM Level 2 HTML 标准。它希望能够减少浏览器对于需要插件的丰富性网络应用服务（plug-in-based rich internet application，RIA)，如Adobe Flash, Microsoft Silverlight, 与 Sun JavaFX 的需求。 HTML 5 提供了一些新的元素和属性，反映典型的现代用法网站。其中有些是技术上类似 &#60;div&#62; 和 &#60;span&#62; 标签，但有一定含义，例如 &#60;nav&#62;（网站导航块）和 &#60;footer&#62;。这种标签将有利于搜索引擎的索引整理、小屏幕装置和视障人士使用。同时为其他浏览要素提供了新的功能，通过一个标准接口，如 &#60;audio&#62; 和 &#60;video&#62; 标记。 并且目前已经不用太过于担心在低版本的IE中兼容性问题，只要在HEAR部分加入如下JS,并且在CSS中加入一些样式让低版本的IE把新的HTML5标签当做DIV来处理就可以解决IE不兼容的问题： &#60;!--[if lt IE 8]&#62; &#60;script src=&#34;http://html5shiv.googlecode.com/svn/trunk/html5.js&#34;&#62;&#60;/script&#62; &#60; ![endif]--&#62; 在css里面加上这段： /*html5*/ article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block} 一些过时的 HTML 4 标记将取消，其中包括纯粹用作显示效果的标记，如 &#60;font&#62; 和 &#60;center&#62;，因为它们已经被 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fie-documentbodyscrollleft-0%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ie中关于document.body.scrollLeft总是0的原因</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-09%2Fcssname%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css常用命名列表</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>HTML 5 是一个新的网络标准，目标在于取代现有的 HTML 4.01, XHTML 1.0 and DOM Level 2 HTML   标准。它希望能够减少浏览器对于需要插件的丰富性网络应用服务（plug-in-based rich internet   application，RIA)，如Adobe Flash, Microsoft Silverlight, 与 Sun JavaFX 的需求。</p>
<p>HTML 5 提供了一些新的元素和属性，反映典型的现代用法网站。其中有些是技术上类似 &lt;div&gt; 和 &lt;span&gt; 标签，但有一定含义，例如 &lt;nav&gt;（网站导航块）和 &lt;footer&gt;。这种标签将有利于搜索引擎的索引整理、小屏幕装置和视障人士使用。同时为其他浏览要素提供了新的功能，通过一个标准接口，如 &lt;audio&gt; 和 &lt;video&gt; 标记。</p>
<p>并且目前已经不用太过于担心在低版本的IE中兼容性问题，只要在HEAR部分加入如下JS,并且在CSS中加入一些样式让低版本的IE把新的HTML5标签当做DIV来处理就可以解决IE不兼容的问题：</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;!--[if lt IE 8]&gt;<br />
&lt;script src=&quot;http://html5shiv.googlecode.com/svn/trunk/html5.js&quot;&gt;&lt;/script&gt;<br />
&lt; ![endif]--&gt;</div></div>
</p>
<p>在css里面加上这段：</p>
<p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/*html5*/<br />
article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}</div></div>
</p>
<p><span id="more-722"></span></p>
<p>一些过时的 HTML 4 标记将取消，其中包括纯粹用作显示效果的标记，如 &lt;font&gt; 和 &lt;center&gt;，因为它们已经被 CSS 取代。还有一些透过   DOM 的网络行为（via）。</p>
<p><strong>下面我们来看一下HTML 5提供的一些新的标签用法以及和HTML 4的区别。</strong></p>
<p><strong>&lt;article&gt;</strong>标签定义外部的内容。比如来自一个外部的新闻提供者的一篇新的文章，或者来自 blog   的文本，或者是来自论坛的文本。亦或是来自其他外部源内容。<br />
	<strong>HTML5:</strong>&lt;article&gt;&lt;/article&gt;<br />
	<strong>HTML4:</strong>&lt;div&gt;&lt;/div&gt;</p>
<p><strong>&lt;aside&gt;</strong>标签定义 article 以外的内容。aside 的内容应该与 article   的内容相关。<br />
	<strong>HTML5:</strong>&lt;aside&gt;Aside   的内容是独立的内容，但应与文档内容相关。&lt;/aside&gt;<br />
	<strong>HTML4:</strong>&lt;div&gt;Aside   的内容是独立的内容，但应与文档内容相关。&lt;/div&gt;</p>
<p><strong>&lt;audio&gt;</strong> 标签定义声音，比如音乐或其他音频流。<br />
	<strong>HTML5:</strong>&lt;audio   src=&quot;someaudio.wav&quot;&gt;您的浏览器不支持 audio   标签。&lt;/audio&gt;<br />
	<strong>HTML4:</strong>&lt;object   type=&quot;application/ogg&quot; data=&quot;someaudio.wav&quot;&gt;&lt;param name=&quot;src&quot;   value=&quot;someaudio.wav&quot;&gt;&lt;/object&gt;</p>
<p><strong>&lt;canvas&gt;</strong> 标签定义图形，比如图表和其他图像。这个 HTML   元素是为了客户端矢量图形而设计的。它自己没有行为，但却把一个绘图 API 展现给客户端 JavaScript   以使脚本能够把想绘制的东西都绘制到一块画布上。<br />
	<strong>HTML5:</strong>&lt;canvas   id=&quot;myCanvas&quot; width=&quot;200&quot;   height=&quot;200&quot;&gt;&lt;/canvas&gt;<br />
	<strong>HTML4:</strong>&lt;object   data=&quot;inc/hdr.svg&quot; type=&quot;image/svg+xml&quot; width=&quot;200&quot;   height=&quot;200&quot;&gt;&lt;/object&gt;</p>
<p><strong>&lt;command&gt;</strong> 标签定义命令按钮，比如单选按钮、复选框或按钮。<br />
	<strong>HTML5: </strong>&lt;command   onclick=cut()&quot; label=&quot;cut&quot;&gt;<br />
	<strong>HTML4: </strong>none</p>
<p><strong>&lt;datalist&gt;</strong> 标签定义可选数据的列表。与 input   元素配合使用，就可以制作出输入值的下拉列表。<br />
	<strong>HTML5: </strong>&lt;datalist&gt;&lt;/datalist&gt;<br />
	<strong>HTML4: </strong>see combobox.</p>
<p><strong>&lt;details&gt;</strong> 标签定义元素的细节，用户可进行查看，或通过点击进行隐藏。与 &lt;legend&gt;   一起使用，来制作 detail 的标题。该标题对用户是可见的，当在其上点击时可打开或关闭 detail。<br />
	<strong>HTML5:</strong> &lt;details&gt;&lt;/details&gt;<br />
	<strong>HTML4: </strong>&lt;dl   style=&quot;display:hidden&quot;&gt;&lt;/dl&gt;</p>
<p><strong>&lt;embed&gt;</strong> 标签定义嵌入的内容，比如插件。<br />
	<strong>HTML5: </strong>&lt;embed   src=&quot;horse.wav&quot; /&gt;<br />
	<strong>HTML4:</strong> &lt;object   data=&quot;flash.swf&quot;    type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/object&gt;</p>
<p><strong>&lt;figcaption&gt;</strong> 标签定义 figure 元素的标题。&rdquo;figcaption&rdquo; 元素应该被置于   &ldquo;figure&rdquo; 元素的第一个或最后一个子元素的位置。<br />
	<strong>HTML5: </strong>&lt;figure&gt;&lt;figcaption&gt;PRC&lt;/figcaption&gt;&lt;/figure&gt;<br />
	<strong>HTML4: </strong>none</p>
<p><strong>&lt;figure&gt;</strong> 标签用于对元素进行组合。使用 &lt;figcaption&gt;   元素为元素组添加标题。<br />
	<strong>HTML5: </strong>&lt;figure&gt;&lt;figcaption&gt;PRC&lt;/figcaption&gt;&lt;p&gt;The   People's Republic of China was born in   1949...&lt;/p&gt;&lt;/figure&gt;<br />
	<strong>HTML4:</strong> &lt;dl&gt;&lt;h1&gt;PRC&lt;/h1&gt;&lt;p&gt;The People's Republic of China was   born in 1949...&lt;/p&gt;&lt;/dl&gt;</p>
<p><strong>&lt;footer&gt;</strong> 标签定义 section 或 document   的页脚。典型地，它会包含创作者的姓名、文档的创作日期以及/或者联系信息。<br />
	<strong>HTML5:</strong> &lt;footer&gt;&lt;/footer&gt;<br />
	<strong>HTML4: </strong>&lt;div&gt;&lt;/div&gt;</p>
<p><strong>&lt;header&gt;</strong> 标签定义 section 或 document 的页眉。<br />
	<strong>HTML5:</strong> &lt;header&gt;&lt;/header&gt;<br />
	<strong>HTML4: </strong>&lt;div&gt;&lt;/div&gt;</p>
<p><strong>&lt;hgroup&gt;</strong> 标签用于对网页或区段（section）的标题进行组合。<br />
	<strong>HTML5:</strong> &lt;hgroup&gt;&lt;/hgroup&gt;<br />
	<strong>HTML4:</strong> &lt;div&gt;&lt;/div&gt;</p>
<p><strong>&lt;keygen&gt;</strong> 标签定义生成密钥。<br />
	<strong>HTML5:</strong> &lt;keygen&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;mark&gt;</strong>主要用来在视觉上向用户呈现那些需要突出的文字。&lt;mark&gt;标签的一个比较典型的应用就是在搜索结果中向用户高亮显示搜索关键词。<br />
	<strong>HTML5:</strong> &lt;mark&gt;&lt;/mark&gt;<br />
	<strong>HTML4:</strong> &lt;span&gt;&lt;/span&gt;</p>
<p><strong>&lt;meter&gt;</strong> 标签定义度量衡。仅用于已知最大和最小值的度量。必须定义度量的范围，既可以在元素的文本中，也可以在 min/max 属性中定义。<br />
	<strong>HTML5:</strong> &lt;meter&gt;&lt;/meter&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;nav&gt;</strong> 标签定义导航链接的部分。<br />
	<strong>HTML5:</strong> &lt;nav&gt;&lt;/nav&gt;<br />
	<strong>HTML4:</strong>&lt;ul&gt;&lt;/ul&gt;</p>
<p><strong>&lt;output&gt;</strong> 标签定义不同类型的输出，比如脚本的输出。<br />
	<strong>HTML5: </strong>&lt;output&gt;&lt;/output&gt;<br />
	<strong>HTML4:</strong> &lt;span&gt;&lt;/span&gt;</p>
<p><strong>&lt;progress&gt;</strong> 标签运行中的进程。可以使用 &lt;progress&gt; 标签来显示   JavaScript 中耗费时间的函数的进程。<br />
	<strong>HTML5:</strong> &lt;progress&gt;&lt;/progress&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;rp&gt;</strong> 标签在 ruby 注释中使用，以定义不支持 ruby 元素的浏览器所显示的内容。<br />
	<strong>HTML5:</strong> &lt;ruby&gt;漢   &lt;rt&gt;&lt;rp&gt;(&lt;/rp&gt;ㄏㄢˋ&lt;rp&gt;)&lt;/rp&gt;&lt;/rt&gt;&lt;/ruby&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;rt&gt;</strong> 标签定义字符（中文注音或字符）的解释或发音。<br />
	<strong>HTML5:</strong> &lt;ruby&gt;漢   &lt;rt&gt; ㄏㄢˋ &lt;/rt&gt;&lt;/ruby&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;ruby&gt;</strong> 标签定义 ruby 注释（中文注音或字符）。<br />
	<strong>HTML5: </strong>&lt;ruby&gt;漢   &lt;rt&gt;&lt;rp&gt;(&lt;/rp&gt;ㄏㄢˋ&lt;rp&gt;)&lt;/rp&gt;&lt;/rt&gt;&lt;/ruby&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;section&gt;</strong> 标签定义文档中的节（section、区段）。比如章节、页眉、页脚或文档中的其他部分。<br />
	<strong>HTML5:</strong> &lt;section&gt;&lt;/section&gt;<br />
	<strong>HTML4:</strong> &lt;div&gt;&lt;/div&gt;</p>
<p><strong>&lt;source&gt;</strong> 标签为媒介元素（比如 &lt;video&gt; 和   &lt;audio&gt;）定义媒介资源。<br />
	<strong>HTML5:</strong> &lt;source&gt;<br />
	<strong>HTML4:</strong> &lt;param&gt;</p>
<p><strong>&lt;summary&gt;</strong> 标签包含 details 元素的标题，&rdquo;details&rdquo;   元素用于描述有关文档或文档片段的详细信息。&rdquo;summary&rdquo; 元素应该是 &ldquo;details&rdquo; 元素的第一个子元素。<br />
	<strong>HTML5:</strong> &lt;details&gt;&lt;summary&gt;HTML 5&lt;/summary&gt;This document teaches you   everything you have to learn about HTML   5.&lt;/details&gt;<br />
	<strong>HTML4:</strong> none</p>
<p><strong>&lt;time&gt;</strong> 标签定义日期或时间，或者两者。<br />
	<strong>HTML5:</strong> &lt;time&gt;&lt;/time&gt;<br />
	<strong>HTML4:</strong> &lt;span&gt;&lt;/span&gt;</p>
<p><strong>&lt;video&gt;</strong> 标签定义视频，比如电影片段或其他视频流。<br />
	<strong>HTML5:</strong> &lt;video   src=&quot;movie.ogg&quot; controls=&quot;controls&quot;&gt;您的浏览器不支持 video   标签。&lt;/video&gt;<br />
	<strong>HTML4:</strong>&lt;object   type=&quot;video/ogg&quot; data=&quot;movie.ogv&quot;&gt;&lt;param name=&quot;src&quot;   value=&quot;movie.ogv&quot;&gt;&lt;/object&gt;</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fie-documentbodyscrollleft-0%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">ie中关于document.body.scrollLeft总是0的原因</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-09%2Fcssname%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css常用命名列表</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-12/html5-new-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>flash中调用js函数实现flash和js的通信</title>
		<link>http://www.ossi.cn/2011-11/flash-js-communicate/</link>
		<comments>http://www.ossi.cn/2011-11/flash-js-communicate/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 10:42:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=717</guid>
		<description><![CDATA[项目中遇到一个情况，需要在FLASH播放结束后自动执行一个JS函数，此JS函数是利用JQurey来通过关闭FLASH所在的DIV，并且显示出原先隐藏的另一个DIV容易来代替目前的Flash。 JS代码如下： &#60;script type=&#34;text/javascript&#34;&#62; function showfocus&#40;&#41; &#123; $&#40;&#34;.focus&#34;&#41;.fadeIn&#40;500&#41;; &#125; function flashover&#40;&#41; &#123; $&#40;&#34;.flashzone&#34;&#41;.fadeOut&#40;1000,showfocus&#41;; &#125; &#60;/script&#62; 里面有2个函数 showfocus 是用来显示原先隐藏的一个层，flashover是先关闭当前的层后在执行showfocus 现在目的是想让FLASH播放好后自动调用 flashover 这个函数来实现前面所说的效果。 实现方法如下： 在FLASH相应的位置加上一个关键帧，写入AS代码 import flash.external.ExternalInterface; ExternalInterface.call&#40;&#34;mPause&#34;&#41;; 如果想执行到这段AS之后延时10秒再去执行JS函数，可以利用setInterval（这是as2中的用法，as3中可以用setTimeout更简单）来实现，如下： import flash.external.ExternalInterface; var abc=setInterval&#40;js_pause,10000&#41;; function js_pause&#40;&#41;&#123; ExternalInterface.call&#40;&#34;flashover&#34;&#41;; clearInterval&#40;abc&#41;; &#125; 注：setInterval表示每隔N秒调用一次函数，所以想达到延迟10秒调用函数的效果，在调用完函数之后就要清楚刚才的时间间隔，否则是降低运行速度。<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-11%2Fflashvars%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash(AS2.0)利用flashvars外部传参数给swf文件。</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-07%2Fdivoverflash%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让DIV层位于flash对象之上</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jquery 样式选择器插件-styleSwitch 1.0</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>项目中遇到一个情况，需要在FLASH播放结束后自动执行一个JS函数，此JS函数是利用JQurey来通过关闭FLASH所在的DIV，并且显示出原先隐藏的另一个DIV容易来代替目前的Flash。</p>
<p>JS代码如下：</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><br />
<span style="color: #003366; font-weight: bold;">function</span> showfocus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.focus&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">500</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #003366; font-weight: bold;">function</span> flashover<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.flashzone&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span>showfocus<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<p>里面有2个函数 showfocus 是用来显示原先隐藏的一个层，flashover是先关闭当前的层后在执行showfocus</p>
<p>现在目的是想让FLASH播放好后自动调用 flashover 这个函数来实现前面所说的效果。</p>
<p>实现方法如下：<br />
<span id="more-717"></span><br />
在FLASH相应的位置加上一个关键帧，写入AS代码</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #006600;">ExternalInterface</span>;<br />
ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;mPause&quot;</span><span style="color: #66cc66;">&#41;</span>;</div></div>
<p>如果想执行到这段AS之后延时10秒再去执行JS函数，可以利用setInterval（这是as2中的用法，as3中可以用setTimeout更简单）来实现，如下：</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">external</span>.<span style="color: #006600;">ExternalInterface</span>;<br />
<span style="color: #000000; font-weight: bold;">var</span> abc=<span style="color: #0066CC;">setInterval</span><span style="color: #66cc66;">&#40;</span>js_pause,<span style="color: #cc66cc;">10000</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #000000; font-weight: bold;">function</span> js_pause<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span><br />
ExternalInterface.<span style="color: #0066CC;">call</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;flashover&quot;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #0066CC;">clearInterval</span><span style="color: #66cc66;">&#40;</span>abc<span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>注：setInterval表示每隔N秒调用一次函数，所以想达到延迟10秒调用函数的效果，在调用完函数之后就要清楚刚才的时间间隔，否则是降低运行速度。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-11%2Fflashvars%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">flash(AS2.0)利用flashvars外部传参数给swf文件。</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-07%2Fdivoverflash%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">让DIV层位于flash对象之上</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">jquery 样式选择器插件-styleSwitch 1.0</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fflash-js-communicate%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-11/flash-js-communicate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>通过CSS强制内容不换行</title>
		<link>http://www.ossi.cn/2011-11/css-white-space/</link>
		<comments>http://www.ossi.cn/2011-11/css-white-space/#comments</comments>
		<pubDate>Tue, 08 Nov 2011 04:33:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=712</guid>
		<description><![CDATA[项目中遇到这么一个情况：一个规定宽度的DIV里面需要横向排列一span来放置数据，每个span的内容长短不一，设置为DISPLAY：block，并且Float:left,这样每个Span都能根据里面内容自适应宽度，并且一个个挨着靠左浮动。 现在要达到的效果是一行中当某个span挤不进去的时候，就自动换行，而不是把它的父容器撑宽度或者把它自己撑高（它的内容出现换行）。 经过测试在大部分浏览器下都没问题，但是在IEE6下它不会换行，也没有把父容器撑宽，而是硬生生挤进去，把自己变窄并撑高了，里面的文字换行了。 为了解决这个问题找了word-break这个属性来解决，发现IE6不支持。 重新经过百度娘的指导，使用white-space: nowrap;问题得到解决。 语法： white-space : normal &#124; pre &#124; nowrap 取值： normal : 默认值。默认处理方式。文本自动处理换行。假如抵达容器边界内容会转到下一行 pre : 换行和其他空白字符都将受到保护。这个值需要IE6+或者 !DOCTYPE 声明为 standards-compliant mode 支持。如果 !DOCTYPE 声明没有指定为 standards-compliant mode ，此属性可以使用，但是不会发生作用。结果等同于 normal 。参阅 pre 对象 nowrap : 强制在同一行内显示所有文本，直到文本结束或者遭遇 br 对象。参阅 noWrap 属性 说明： 设置或检索对象内空格字符的处理方式。 空格字符，像换行，空格，TAB，在HTML文档中默认的是被忽略的。当此属性设置为 normal 或者 nowrap 时，你可以使用不换行空格的命名实体来添加空格，用 br 元素来添加换行。此属性对你使用文档对象模型(DOM)操作的内容的影响与其对IE显示内容的影响一样。 此属性作用于块对象。 此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Html5新标签解释及用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-09%2Fcssname%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css常用命名列表</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>项目中遇到这么一个情况：一个规定宽度的DIV里面需要横向排列一span来放置数据，每个span的内容长短不一，设置为DISPLAY：block，并且Float:left,这样每个Span都能根据里面内容自适应宽度，并且一个个挨着靠左浮动。</p>
<p>现在要达到的效果是一行中当某个span挤不进去的时候，就自动换行，而不是把它的父容器撑宽度或者把它自己撑高（它的内容出现换行）。</p>
<p>经过测试在大部分浏览器下都没问题，但是在IEE6下它不会换行，也没有把父容器撑宽，而是硬生生挤进去，把自己变窄并撑高了，里面的文字换行了。</p>
<p>为了解决这个问题找了word-break这个属性来解决，发现IE6不支持。</p>
<p>重新经过百度娘的指导，使用white-space: nowrap;问题得到解决。<br />
<span id="more-712"></span><br />
语法：<br />
white-space : normal | pre | nowrap<br />
取值：<br />
normal   : 默认值。默认处理方式。文本自动处理换行。假如抵达容器边界内容会转到下一行<br />
pre   : 换行和其他空白字符都将受到保护。这个值需要IE6+或者 !DOCTYPE 声明为 standards-compliant mode 支持。如果 !DOCTYPE 声明没有指定为 standards-compliant mode ，此属性可以使用，但是不会发生作用。结果等同于 normal 。参阅 pre 对象<br />
nowrap   : 强制在同一行内显示所有文本，直到文本结束或者遭遇 br 对象。参阅 noWrap 属性 </p>
<p>说明：<br />
设置或检索对象内空格字符的处理方式。<br />
空格字符，像换行，空格，TAB，在HTML文档中默认的是被忽略的。当此属性设置为 normal 或者 nowrap 时，你可以使用不换行空格的命名实体来添加空格，用 br 元素来添加换行。此属性对你使用文档对象模型(DOM)操作的内容的影响与其对IE显示内容的影响一样。<br />
此属性作用于块对象。<br />
此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。<br />
对应的脚本特性为 whiteSpace 。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Html5新标签解释及用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-09%2Fcssname%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css常用命名列表</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-11/css-white-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS 中文字体的英文名称 宋体 微软雅黑等</title>
		<link>http://www.ossi.cn/2011-09/css-font/</link>
		<comments>http://www.ossi.cn/2011-09/css-font/#comments</comments>
		<pubDate>Sat, 10 Sep 2011 11:29:16 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=709</guid>
		<description><![CDATA[在网页前端开发制作中经常遇到需要使用微软雅黑，宋体等中文字体的情况，一般我们直接使用 font-family:&#34;微软雅黑&#34;; 这样的写法，然而在一些英文系统或者MAC中直接在CSS中使用中文可能会无法读取，或者你是像我一样，看到在CSS中出现中文就心里不爽的人，那么，介绍CSS中几种中文字体的英文写法： Mac OS的一些： 华文细黑：STHeiti Light [STXihei] 华文黑体：STHeiti 华文楷体：STKaiti 华文宋体：STSong 华文仿宋：STFangsong 俪黑 Pro：LiHei Pro Medium 俪宋 Pro：LiSong Pro Light 标楷体：BiauKai 苹果俪中黑：Apple LiGothic Medium 苹果俪细宋：Apple LiSung Light Windows的一些： 新细明体：PMingLiU 细明体：MingLiU 标楷体：DFKai-SB 黑体：SimHei 宋体：SimSun 新宋体：NSimSun 仿宋：FangSong 楷体：KaiTi 仿宋_GB2312：FangSong_GB2312 楷体_GB2312：KaiTi_GB2312 微软正黑体：Microsoft JhengHei 微软雅黑体：Microsoft YaHei 装Office会生出来的一些： 隶书：LiSu 幼圆：YouYuan 华文细黑：STXihei 华文楷体：STKaiti 华文宋体：STSong 华文中宋：STZhongsong 华文仿宋：STFangsong 方正舒体：FZShuTi 方正姚体：FZYaoti 华文彩云：STCaiyun 华文琥珀：STHupo 华文隶书：STLiti [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-02%2Ftext-overflow%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用css控制字符溢出用省略号表示</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在网页前端开发制作中经常遇到需要使用微软雅黑，宋体等中文字体的情况，一般我们直接使用</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;微软雅黑&quot;</span><span style="color: #00AA00;">;</span></div></div>
<p>这样的写法，然而在一些英文系统或者MAC中直接在CSS中使用中文可能会无法读取，或者你是像我一样，看到在CSS中出现中文就心里不爽的人，那么，介绍CSS中几种中文字体的英文写法：<br />
<span id="more-709"></span><br />
<strong>Mac OS的一些：</strong></p>
<p>华文细黑：STHeiti Light [STXihei]<br />
华文黑体：STHeiti<br />
华文楷体：STKaiti<br />
华文宋体：STSong<br />
华文仿宋：STFangsong<br />
俪黑 Pro：LiHei Pro Medium<br />
俪宋 Pro：LiSong Pro Light<br />
标楷体：BiauKai<br />
苹果俪中黑：Apple LiGothic Medium<br />
苹果俪细宋：Apple LiSung Light</p>
<p><strong>Windows的一些：</strong></p>
<p>新细明体：PMingLiU<br />
细明体：MingLiU<br />
标楷体：DFKai-SB<br />
黑体：SimHei<br />
宋体：SimSun<br />
新宋体：NSimSun<br />
仿宋：FangSong<br />
楷体：KaiTi<br />
仿宋_GB2312：FangSong_GB2312<br />
楷体_GB2312：KaiTi_GB2312<br />
微软正黑体：Microsoft JhengHei<br />
微软雅黑体：Microsoft YaHei</p>
<p><strong>装Office会生出来的一些：</strong></p>
<p>隶书：LiSu<br />
幼圆：YouYuan<br />
华文细黑：STXihei<br />
华文楷体：STKaiti<br />
华文宋体：STSong<br />
华文中宋：STZhongsong<br />
华文仿宋：STFangsong<br />
方正舒体：FZShuTi<br />
方正姚体：FZYaoti<br />
华文彩云：STCaiyun<br />
华文琥珀：STHupo<br />
华文隶书：STLiti<br />
华文行楷：STXingkai<br />
华文新魏：STXinwei</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS控制图片等比例缩放</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-02%2Ftext-overflow%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用css控制字符溢出用省略号表示</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-09/css-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress页面函数：wp_list_pages()</title>
		<link>http://www.ossi.cn/2011-08/wp-list-pages/</link>
		<comments>http://www.ossi.cn/2011-08/wp-list-pages/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 15:16:00 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=704</guid>
		<description><![CDATA[模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。 用法： &#60;?php wp_list_pages&#40;'arguments'&#41;; ?&#62; 默认参数设置为： $defaults = array&#40; &#160; &#160; &#160; &#160; &#160; 'depth' &#160; &#160; &#160; =&#62; 0, &#160; 显示所有页面和子页面（无深度限制） &#160; &#160; 'show_date' &#160; =&#62; '', &#160; &#160; 不显示创建日期 &#160; &#160; 'date_format' =&#62; get_option&#40;'date_format'&#41;, &#160; &#160; &#160; &#160; &#160; 'child_of' &#160; &#160;=&#62; 0, &#160; &#160; &#160;子页面无限制 &#160; &#160; 'exclude' &#160; &#160; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-02%2Fiis-wordpress-indexphp%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IIS环境下wordpress中永久链接去掉index.php</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-03%2Fwordpress-audio-player-cn%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Audio Player最新汉化版发布下载</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-02%2Fwp-permalinks%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress永久链接或固定链接设置技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-06%2Fcodecolorer%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress代码高亮插件CodeColorer使用方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2010-02%2Fwordpress-function-3%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通俗易懂的WordPress函数简明教程（三）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>模板标签wp_list_pages( )将WordPress页面作为链接显示出来。该模板标签常用于自定义侧边栏或标题，也常用于其他模板中。该模板标签在WordPress 1.5及更新版本中可用。</p>
<p>用法：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'arguments'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>默认参数设置为：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'depth'</span> &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> &nbsp; 显示所有页面和子页面（无深度限制） <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'show_date'</span> &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> &nbsp; &nbsp; 不显示创建日期 <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'date_format'</span> <span style="color: #339933;">=&gt;</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'date_format'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'child_of'</span> &nbsp; &nbsp;<span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> &nbsp; &nbsp; &nbsp;子页面无限制<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'exclude'</span> &nbsp; &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> &nbsp; &nbsp;不删除任何页面<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'title_li'</span> &nbsp; &nbsp;<span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> &nbsp; 页面列表的标题为“Pages（页面）” <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'echo'</span> &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">,</span> &nbsp; &nbsp; 回显（显示）结果 <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'authors'</span> &nbsp; &nbsp; <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> &nbsp; &nbsp; &nbsp;不局限于特定作者 <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'sort_column'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'menu_order, post_title'</span><span style="color: #339933;">,</span> &nbsp;先按页面顺序再按页面标题排序 <br />
&nbsp; &nbsp; <span style="color: #0000ff;">'link_before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'link_after'</span> &nbsp;<span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #0000ff;">'exclude_tree'</span><span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>不删除父级<span style="color: #339933;">/</span>子级树</div></div>
<p><span id="more-704"></span><br />
隐藏或改变列表标题<br />
给title_li参数传递一个零值或空值，可以隐藏由wp_list_pages生成的页面列表默认标题。下面的代码可显示所述效果：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>在下面这个例子中，列表中只包含编号为9，5，23的页面，标题内容被改为“Poetry”，格式为< h2 >:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include=5,9,23&amp;title_li=&lt;h2&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Poetry'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>将页面按页面顺序排列<br />
下面的例子将页面按管理栏中 Write > Page 定义的页面顺序进行排列。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>如果希望将列表按页面顺序进行排列并将“Prose”作为列表标题（以h2格式）显示在侧边栏中，可将以下代码添加到sidebar.php文件中：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;title_li=&lt;h2&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Prose'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>使用下列代码段，可显示出无标题并以页面顺序排列的页面：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=menu_order&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>将页面按发表日期排列<br />
下列代码显示出的页面将按发表日期进行排列，在页面列表项旁显示日期。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=post_date&amp;show_date=created'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>从列表中排除页面<br />
用exclude参数可隐藏列表中由wp_list_pages生成的若干页面。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'exclude=17,38'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>显示列表中特定页面<br />
若仅希望在列表中显示特定页面，例如编号为35，7，26和13的页面，可使用include参数。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'include=7,13,26,35&amp;title_li=&lt;h2&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">''</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>显示子页面<br />
注意：即使没有子页面，HTML标签也是必要的（ul或ol）。用css设置列表时需要将这一点谨记在心。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp; &nbsp;<br />
&nbsp; wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;child_of='</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;show_date=modified &nbsp; &nbsp;<br />
&nbsp; &amp;date_format=$date_format'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&lt;/ul&gt;</div></div>
<p>以下代码仅在目前页面有子页面（将目前页面设为父级页面的页面）的情况下生成列表：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;child_of='</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;echo=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&nbsp; &lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$children</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&nbsp; &lt;/ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>在子页面上列出子页面<br />
上述示例都是在父级页面上展示子页面，却没有说明如何在子页面上进行展示。可用下列代码在某一父页面或其中一个子页面上展示子页面。<br />
将本代码放在侧边栏的widget区块后，代码将无法运行。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #009900;">&#41;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">else</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000088;">$children</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&nbsp; &lt;ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$children</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &nbsp; &nbsp;<br />
&nbsp; &lt;/ul&gt; &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>本代码也可用在sidebar.php中，仅显示顶级页面。但浏览到包含子页面的页面时，仅显示其子页面。<br />
浏览主页时在侧边栏显示所有顶级页面<br />
浏览没有子页面的顶级页面时，显示所有顶级页面<br />
浏览有子页面的顶级页面时，显示所有子页面及下一级页面<br />
浏览子页面时，显示其父级页面下的所有子页面和下一级页面</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> &nbsp;<br />
<span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'echo=0&amp;depth=1&amp;title_li=&lt;h2&gt;Top Level Pages '</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp;<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000088;">$page</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #000088;">$page</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #009900;">&#125;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #000088;">$children</span><span style="color: #339933;">=</span>wp_list_pages<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'echo=0&amp;child_of='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$page</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;title_li='</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$children</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #000088;">$output</span> <span style="color: #339933;">=</span> wp_list_pages <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'echo=0&amp;child_of='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$page</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;title_li=&lt;h2&gt;Child Pages&lt;/h2&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #009900;">&#125;</span> &nbsp;<br />
<span style="color: #009900;">&#125;</span> &nbsp;<br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$output</span><span style="color: #339933;">;</span> &nbsp;<br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>页面选项标记与格式<br />
默认情况下，wp_list_pages( )生成一个嵌套的、由管理栏 Write > Page 生成的无序WordPress页面列表。将title_li参数设为任意空字符后可除去最外围选项（li.pagenav）和列表（ul）。<br />
所有wp_list_pages( )生成的列表项（li）都被标上page_item类。显示页面时将调用wp_list_pages( )，这时该页面的列表项被赋予附加类current_page_item。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;pagenav&quot;</span><span style="color: #339933;">&gt;</span> &nbsp;<br />
Pages <span style="color: #009900;">&#91;</span>title_li<span style="color: #009900;">&#93;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;!--</span> Output starts here <span style="color: #b1b100;">if</span> <span style="color: #0000ff;">'title_li'</span> parameter is <a href="http://www.php.net/empty"><span style="color: #990000;">empty</span></a> <span style="color: #339933;">--&gt;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page-item-2 page_item current_page_ancestor current_page_parent&quot;</span><span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#91;</span>parent of the <a href="http://www.php.net/current"><span style="color: #990000;">current</span></a> Page<span style="color: #009900;">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page-item-21 page_item current_page_item&quot;</span><span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#91;</span>the <a href="http://www.php.net/current"><span style="color: #990000;">current</span></a> Page<span style="color: #009900;">&#93;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;</span>li <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;page-item-3 page_item&quot;</span><span style="color: #339933;">&gt;</span> &nbsp; &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#91;</span>another Page<span style="color: #009900;">&#93;</span> &nbsp; &nbsp; &nbsp;<br />
&nbsp; &nbsp; <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span> &nbsp; &nbsp;<br />
&nbsp; <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></div></div>
<p>可以用CSS选择器为这些列表项进行样式设计：</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #6666ff;">.pagenav</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* the outermost list item; contains whole list */</span> &nbsp;<br />
<span style="color: #6666ff;">.page-item-2</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* item for Page ID 2 */</span> &nbsp;<br />
<span style="color: #6666ff;">.page_item</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* any Page item */</span> &nbsp;<br />
<span style="color: #6666ff;">.current_page_item</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* the current Page */</span> &nbsp;<br />
<span style="color: #6666ff;">.current_page_parent</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* parent of the current Page */</span> &nbsp;<br />
<span style="color: #6666ff;">.current_page_ancestor</span> <span style="color: #00AA00;">&#123;</span> … <span style="color: #00AA00;">&#125;</span> <span style="color: #808080; font-style: italic;">/* any ancestor of the current Page */</span> &nbsp;参数<br />
sort_column <span style="color: #00AA00;">&#40;</span>字符<span style="color: #00AA00;">&#41;</span></div></div>
<p>按不同方式对页面列表进行排序。默认设置成按页面标题的字母顺序排序。<br />
‘post_title’ —— 按页面标题的字母顺序排序——默认<br />
‘menu_order’ —— 按页面顺序（Page Order）进行排序。注意页面顺序和页面编号的区别。页面编号是由WordPress为每篇文章或页面设定的独有的数字，而页面顺序则由用户在管理栏的Write>Pages中设置。<br />
‘post_date’ —— 按页面创建日期排序。<br />
‘post_modified’ —— 按最后修改时间进行排序。<br />
‘ID’ —— 按页面序列编号排序。<br />
‘post_author’ —— 按页面创建者的序列编号排序。<br />
‘post_name’ —— 按页面缩略名的字母顺序排序。<br />
注意：sort_column参数可按WordPress数据库 wp_post table中任意字段的描述符来对页面列表进行排序。下面给出一些实用示例。<br />
sort_order (字符)<br />
更改页面列表的排列顺序（升序或降序）。默认为升序。可能的值为：<br />
‘asc’ ——按从低到高顺序排列（默认）<br />
‘desc’ —— 按从高到低顺序排列<br />
exclude (字符)<br />
定义一列页面编号并用逗号隔开，将其从已有列表中删除（例如：’exclude=3，7，1′）。无默认值。<br />
exclude_tree (整数)<br />
与’child_of’相反，’exclude_tree’从结果中移除已知编号的所有子页面。也可用于隐藏已知页面的所有子页面。该参数还可联合’child_of’ 的值以隐藏孙页面。在2.7版本中该参数可用。<br />
include (字符)<br />
仅包含get_pages生成的特定页面列表。include参数与exclude同样用逗号将页面编号隔开。无默认值。<br />
depth(整数)<br />
该参数决定wp_list_pages生成的列表中包含的页面层次级数。默认值为0（显示子页面内的所有页面）。<br />
0 — 以层级方式（缩进）显示所有页面和子页面（默认）<br />
-1 — 以平级方式（不缩进）显示子页面中的页面<br />
1 — 仅显示最上层页面<br />
2 — 该值（或更大值）表示需要显示页面内部的层级数<br />
child_of (整数)<br />
仅显示单个页面的子页面；值为默认编号。默认值为0（显示所有页面）。注意child_of参数不仅获取直系子页面，也会从已知编号中获取“孙页面”。默认值为0（显示所有页面）。<br />
show_data(字符)<br />
在每篇页面旁显示创建日期或最新修改日期。默认值为空值（不显示日期）。可用的值包括：<br />
‘ ‘ — 不显示日期（默认）<br />
‘modified’ — 显示最新修改日期<br />
‘xxx’ — 任何非’modified’值都将显示页面最初创建的日期（post_date）。参看上文中的示例。<br />
date_format(字符)<br />
该参数对show_date参数生成的页面日期格式（”l, F j, Y”）进行设置。默认格式为WordPress选项设定的日期格式。参见日期和时间设置以及php网站上的页面日期格式。<br />
title_li (字符)<br />
设置页面列表标题的内容与样式。默认值为“_（’页面’）”，显示结果为“页面”（_(”)用于本地定位）。若传递值为零或为空（”），则不显示标题，列表也不会被ul标签围绕。参见标题示例。<br />
echo (布尔型)<br />
触发显示所生成的链接列表，或将列表按HTML文本格式返回供PHP使用。默认值为1（显示生成的列表项）。可能的值包括：<br />
1 (true) — 默认<br />
0（false）<br />
hierarchical（布尔型）<br />
在上级页面列表下以缩进方式显示下级页面。默认值为true（在父级列表项下显示其子页面）。可能的值有：<br />
1（true）——默认<br />
0（false）<br />
meta_key（字符）<br />
仅包含含有该自定义字段关键字的页面（与meta_value字段联合使用）。<br />
meta_value（字符）<br />
仅包含含有该自定义字段值的页面（与meta_key字段联合使用）。<br />
link_before（字符）<br />
设置标签< a>中文字链接前的文本或html代码。（适用于2.7.0或更新版本）<br />
link_after（字符）<br />
设置标签< a>中文字链接后的文本或html代码。（适用于2.7.0或更新版本）</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-02%2Fiis-wordpress-indexphp%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">IIS环境下wordpress中永久链接去掉index.php</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-03%2Fwordpress-audio-player-cn%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress Audio Player最新汉化版发布下载</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2009-02%2Fwp-permalinks%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WordPress永久链接或固定链接设置技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-06%2Fcodecolorer%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">wordpress代码高亮插件CodeColorer使用方法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2010-02%2Fwordpress-function-3%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-08%2Fwp-list-pages%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通俗易懂的WordPress函数简明教程（三）</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-08/wp-list-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS控制图片等比例缩放</title>
		<link>http://www.ossi.cn/2011-07/css-img-thumb/</link>
		<comments>http://www.ossi.cn/2011-07/css-img-thumb/#comments</comments>
		<pubDate>Fri, 29 Jul 2011 05:40:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=700</guid>
		<description><![CDATA[网页制作过程中经常遇到需要做特片等比缩放，并且需要控制尺寸在一定的范围内。一般有JS与CSS两种控制方法，在我看来用CSS控制相对简便一些。 IE7以上 FF等直接用 max-width与 max-height两个属性，IE6用expression，示例如下： &#60; !DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html&#160;xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta&#160;http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /&#62; &#60;title&#62;PIC&#60;/title&#62; &#60;script&#160;type=&#34;text/javascript&#34;&#62; function ResumeError() { return true; } window.onerror = ResumeError; //屏蔽JS错误，这样状态栏就不会显示“网站上有错误了” &#60;/script&#62; &#160; &#60;style&#160;type=&#34;text/css&#34; &#62; .album img { vertical-align: middle; max-width:100px;&#160;&#160; /* FF IE7+ */ max-height:100px; /* FF IE7+ */ _width:expression(this.width&#62;100&#38;&#38;this.width&#62;this.height?100:auto); /* IE6 */ [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Html5新标签解释及用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>网页制作过程中经常遇到需要做特片等比缩放，并且需要控制尺寸在一定的范围内。一般有JS与CSS两种控制方法，在我看来用CSS控制相对简便一些。<br />
IE7以上 FF等直接用 max-width与 max-height两个属性，IE6用expression，示例如下：</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Gray;"> !</span><span style="color: #00008b;">DOCTYPE</span><span style="color: Gray;"> </span><span style="color: #00008b;">html</span><span style="color: Gray;"> </span><span style="color: #00008b;">PUBLIC</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">-//W3C//DTD XHTML 1.0 Transitional//EN</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">html</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">xmlns</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://www.w3.org/1999/xhtml</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">head</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">meta</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">http-equiv</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Content-Type</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">content</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/html; charset=gb2312</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">title</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">PIC</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">title</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/javascript</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">function ResumeError() { return true; } </span></li>
<li><span style="color: Gray;">window.onerror = ResumeError; //屏蔽JS错误，这样状态栏就不会显示“网站上有错误了”</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">style</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">.album img { </span></li>
<li><span style="color: Gray;">vertical-align: middle; </span></li>
<li><span style="color: Gray;">max-width:100px;&nbsp;&nbsp; /* FF IE7+ */</span></li>
<li><span style="color: Gray;">max-height:100px; /* FF IE7+ */</span></li>
<li><span style="color: Gray;">_width:expression(this.width&gt;100&amp;&amp;this.width&gt;this.height?100:auto); /* IE6 */</span></li>
<li><span style="color: Gray;">_height:expression(this.height&gt;100?100:auto); /* IE6 */ </span></li>
<li><span style="color: Gray;">}</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">style</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">head</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">body</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">album</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;&nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">img</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">src</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">pic_01.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;&nbsp; </span><span style="color: Olive;">&lt;</span><span style="color: Green;">img</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">src</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">pic_02.jpg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span><span style="color: Gray;">&nbsp;&nbsp; </span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">body</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">html</span><span style="color: Olive;">&gt;</span></li></ol></div>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-12%2Fhtml5-new-tag%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Html5新标签解释及用法</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fcss-img-thumb%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-07/css-img-thumb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery 样式选择器插件-styleSwitch 1.0</title>
		<link>http://www.ossi.cn/2011-07/jquery-styleswitch/</link>
		<comments>http://www.ossi.cn/2011-07/jquery-styleswitch/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 15:58:24 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[知识口袋]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.ossi.cn/?p=692</guid>
		<description><![CDATA[这是一个Jqurey网站换肤插件，支持多个样式表联合换肤。支持Cookie记录当前选择的皮肤。可以通过灵活的变换组合，形成一套多功能的网页换肤系统。 styleSwitch.js 源码 &#160;// JavaScript Document &#160;/** &#160;* styleSwitch 1.0 plugin &#160;* ----------------------------------------------- &#160;* the plugin to manage user setted style &#160;* and change styles for user when user click the sytle link button &#160;* Anthor:Rain.zhai &#160;* Date: 2010/5/8 &#160;*/ &#160;&#40;function&#40;$&#41; &#123; &#160;//styleSwitch to response user selected style link &#160;//styleSwitch方法对用户的点击作出响应 &#160;$.fn.styleSwitch = function&#40;o&#41; &#123; &#160;o [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-01%2F10-jquery-lightbox%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">10个最佳jQuery Lightbox效果插件收集</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这是一个Jqurey网站换肤插件，支持多个样式表联合换肤。支持Cookie记录当前选择的皮肤。可以通过灵活的变换组合，形成一套多功能的网页换肤系统。</p>
<p>styleSwitch.js 源码<br />
<span id="more-692"></span></p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;height:300px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #006600; font-style: italic;">// JavaScript Document</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">/**<br />
&nbsp;* styleSwitch 1.0 plugin <br />
&nbsp;* -----------------------------------------------<br />
&nbsp;* the plugin to manage user setted style<br />
&nbsp;* and change styles for user when user click the sytle link button<br />
&nbsp;* Anthor:Rain.zhai<br />
&nbsp;* Date: 2010/5/8<br />
&nbsp;*/</span><br />
&nbsp;<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//styleSwitch to response user selected style link</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//styleSwitch方法对用户的点击作出响应 </span><br />
&nbsp;$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">styleSwitch</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp;o <span style="color: #339933;">=</span> $.<span style="color: #660066;">extend</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;selector<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #006600; font-style: italic;">//样式表link的class名</span><br />
&nbsp;stylename<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;style&quot;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//样式名称，用作 cookie 名称，可以任意命名</span><br />
&nbsp;theClickElementRel<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,</span><span style="color: #006600; font-style: italic;">//用户点击链 接</span><br />
&nbsp;expeirdays<span style="color: #339933;">:</span><span style="color: #CC0000;">10</span> <span style="color: #006600; font-style: italic;">//cookie有效期</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> o <span style="color: #339933;">||</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> temp_selector <span style="color: #339933;">=</span> o.<span style="color: #660066;">selector</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> temp_stylename <span style="color: #339933;">=</span> o.<span style="color: #660066;">stylename</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> temp_expires <span style="color: #339933;">=</span> o.<span style="color: #660066;">expeirdays</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> temp_rel <span style="color: #339933;">=</span> o.<span style="color: #660066;">theClickElementRel</span><span style="color: #339933;">;</span> <br />
<br />
&nbsp;<span style="color: #006600; font-style: italic;">//check if there a stylesheet title &nbsp;attribute value equal the clicked link's rel value</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//遍历链接的样式表 检查是否title属性值等于被点击链接的rel属性值</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span>temp_selector<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <br />
&nbsp;<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">disabled</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'title'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> temp_rel<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">disabled</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #006600; font-style: italic;">//销毁一个cookie</span><br />
&nbsp;$.<span style="color: #660066;">eraseStyleCookie</span><span style="color: #009900;">&#40;</span>temp_stylename<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #006600; font-style: italic;">//create a cookie but the value must the user clicked link rel value</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//创建一个cookie 其值是当前点击链接的rel值</span><br />
&nbsp;$.<span style="color: #660066;">createStyleCookie</span><span style="color: #009900;">&#40;</span>temp_stylename<span style="color: #339933;">,</span> temp_rel<span style="color: #339933;">,</span> temp_expires<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span> <br />
<br />
&nbsp;<span style="color: #006600; font-style: italic;">//check if user has cookie in this page</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//检查用户该页面是否有cookie存在</span><br />
&nbsp;$.<span style="color: #660066;">checkCookieForStyle</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> checkCookieForStyle<span style="color: #009900;">&#40;</span>temp_linkselector<span style="color: #339933;">,</span>temp_linkstylename<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #006600; font-style: italic;">//read the cookie by the temp_linkstylename</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//通过 temp_linkstylename参数来读取cookie</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> cookieHistoryStyleLinkName <span style="color: #339933;">=</span> $.<span style="color: #660066;">readStyleCookie</span><span style="color: #009900;">&#40;</span>temp_linkstylename<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #006600; font-style: italic;">//if the return form cookie is not null or empty check the stylesheet title vale == the cookieHistoryStyleLinkName</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//如果cookie不为null和 空，将cookie的值与样式表链接进行比较</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>cookieHistoryStyleLinkName<span style="color: #339933;">!=</span><span style="color: #003366; font-weight: bold;">null</span> <span style="color: #339933;">&amp;&amp;</span> cookieHistoryStyleLinkName<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span>temp_linkselector<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <br />
&nbsp;<span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">disabled</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">getAttribute</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'title'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> cookieHistoryStyleLinkName<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">disabled</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span> &nbsp;<br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #006600; font-style: italic;">//create a new cookie for user</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//为当前用户创建一个新的cookie &nbsp; &nbsp; &nbsp; </span><br />
&nbsp;$.<span style="color: #660066;">createStyleCookie</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span> createStyleCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #339933;">,</span>value<span style="color: #339933;">,</span>days<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>days<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> date <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> Date<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;date.<span style="color: #660066;">setTime</span><span style="color: #009900;">&#40;</span>date.<span style="color: #660066;">getTime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#40;</span>days<span style="color: #339933;">*</span><span style="color: #CC0000;">24</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">60</span><span style="color: #339933;">*</span><span style="color: #CC0000;">1000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> expires <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;; expires=&quot;</span><span style="color: #339933;">+</span>date.<span style="color: #660066;">toGMTString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> expires <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp;document.<span style="color: #660066;">cookie</span> <span style="color: #339933;">=</span> <span style="color: #000066;">name</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #339933;">+</span>value<span style="color: #339933;">+</span>expires<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;; path=/&quot;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//读取cookie方法</span><br />
&nbsp;$.<span style="color: #660066;">readStyleCookie</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span> readStyleCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> nameEQ <span style="color: #339933;">=</span> <span style="color: #000066;">name</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;=&quot;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> ca <span style="color: #339933;">=</span> document.<span style="color: #660066;">cookie</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">';'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i <span style="color: #339933;">&lt;</span> ca.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;<span style="color: #003366; font-weight: bold;">var</span> c <span style="color: #339933;">=</span> ca<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>c.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">==</span><span style="color: #3366CC;">' '</span><span style="color: #009900;">&#41;</span> c <span style="color: #339933;">=</span> c.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span>c.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>c.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>nameEQ<span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #000066; font-weight: bold;">return</span> c.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span>nameEQ.<span style="color: #660066;">length</span><span style="color: #339933;">,</span>c.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">null</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//erase a cookie for user &nbsp; &nbsp; &nbsp; </span><br />
&nbsp;<span style="color: #006600; font-style: italic;">//销毁cookie方法</span><br />
&nbsp;$.<span style="color: #660066;">eraseStyleCookie</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span> eraseStyleCookie<span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$.<span style="color: #660066;">createStyleCookie</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;&quot;</span><span style="color: #339933;">,-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #006600; font-style: italic;">/*<br />
&nbsp;* the end of the plugin code<br />
&nbsp;* -----------------------------------------------<br />
&nbsp;*/</span></div></div>
<p>页面配置JS代码段<br />
</code></p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:550px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$.<span style="color: #660066;">checkCookieForStyle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.widthstyles&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;widthstyles&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.width-switch&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.width-switch&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">styleSwitch</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp;selector<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;.widthstyles&quot;</span><span style="color: #339933;">,</span><br />
&nbsp;effectlink<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;.widthstyles&quot;</span><span style="color: #339933;">,</span> &nbsp; &nbsp;<br />
&nbsp;stylename<span style="color: #339933;">:</span><span style="color: #3366CC;">&quot;widthstyles&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp;theClickElementRel<span style="color: #339933;">:</span>$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;rel&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp;expeirdays<span style="color: #339933;">:</span><span style="color: #CC0000;">10</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp;<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></div></div>
<p>使用实例</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline"><span style="color: Olive;">&lt;</span><span style="color: Gray;"> !</span><span style="color: #00008b;">DOCTYPE</span><span style="color: Gray;"> </span><span style="color: #00008b;">html</span><span style="color: Gray;"> </span><span style="color: #00008b;">PUBLIC</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">-//W3C//DTD XHTML 1.0 Transitional//EN</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">html</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">xmlns</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://www.w3.org/1999/xhtml</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">head</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">meta</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">http-equiv</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">Content-Type</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">content</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/html; charset=gb2312</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">title</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">test</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">title</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/css.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">alternate stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/bg1.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/bg2.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg2</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">alternate stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/bg3.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg3</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">alternate stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/common1.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/common2.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common2</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">link</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">alternate stylesheet</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">css/common3.css</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">title</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common3</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">media</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">screen, projection</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: Olive;">/&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/javascript</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">src</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">http://code.jquery.com/jquery-1.4.2.min.js</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/javascript</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">src</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">styleSwitch.js</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">script</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">type</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">text/javascript</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">$(function(){ </span></li>
<li><span style="color: Gray;">//check the page have cookie or not</span></li>
<li><span style="color: Gray;">$.checkCookieForStyle(&quot;.bg&quot;,&quot;bg&quot;);</span></li>
<li><span style="color: Gray;">$.checkCookieForStyle(&quot;.common&quot;,&quot;common&quot;); </span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">//click a link to change style</span></li>
<li><span style="color: Gray;">$(&quot;.width-switch&quot;).click(function(){</span></li>
<li><span style="color: Gray;">$(&quot;.width-switch&quot;).styleSwitch({&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">selector:&quot;.bg&quot;,&nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">stylename:&quot;bg&quot;, </span></li>
<li><span style="color: Gray;">theClickElementRel:$(this).attr(&quot;rel&quot;),</span></li>
<li><span style="color: Gray;">expeirdays:10 </span></li>
<li><span style="color: Gray;">});</span></li>
<li><span style="color: Gray;">});</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Gray;">$(&quot;.font-switch&quot;).click(function(){</span></li>
<li><span style="color: Gray;">$(&quot;.font-switch&quot;).styleSwitch({&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span></li>
<li><span style="color: Gray;">selector:&quot;.common&quot;, </span></li>
<li><span style="color: Gray;">stylename:&quot;common&quot;, </span></li>
<li><span style="color: Gray;">theClickElementRel:$(this).attr(&quot;rel&quot;),</span></li>
<li><span style="color: Gray;">expeirdays:10 </span></li>
<li><span style="color: Gray;">});</span></li>
<li><span style="color: Gray;">});</span></li>
<li><span style="color: Gray;">});</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">script</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">head</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Gray;">&nbsp;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">body</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">id</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">container</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">container</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;"> hello sir ,welcome ! </span><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">h4</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">Page bg and Font size:</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">h4</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">box1</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">width-switch optionbox width-1</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">bg1</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg2</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">width-switch optionbox width-2</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">bg2</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">bg3</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">width-switch optionbox width-3</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">bg3</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">div</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">box2</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common1</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">font-switch optionbox font-1</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">common1</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common2</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">font-switch optionbox font-2</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">common2</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;</span><span style="color: Green;">a</span><span style="color: Gray;">&nbsp;</span><span style="color: #00008b;">href</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">#</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">rel</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">common3</span><span style="color: #8b0000;">&quot;</span><span style="color: Gray;"> </span><span style="color: #00008b;">class</span><span style="color: Gray;">=</span><span style="color: #8b0000;">&quot;</span><span style="color: Red;">font-switch optionbox font-3</span><span style="color: #8b0000;">&quot;</span><span style="color: Olive;">&gt;</span><span style="color: Gray;">common3</span><span style="color: Olive;">&lt;/</span><span style="color: Green;">a</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">div</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">body</span><span style="color: Olive;">&gt;</span></li>
<li><span style="color: Olive;">&lt;/</span><span style="color: Green;">html</span><span style="color: Olive;">&gt;</span></li></ol></div>
<p>来源：http://hi.baidu.com/shiryu963/blog/item/4ad518af08db05c07cd92a92.html</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-01%2F10-jquery-lightbox%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">10个最佳jQuery Lightbox效果插件收集</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2007-11%2Fcss-date-alignment%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">用XHTML+CSS实现文章列表标题时间对齐</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-09%2Fcss-font%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">CSS 中文字体的英文名称 宋体 微软雅黑等</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2008-05%2Fcss-div-center%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">css中如何使div居中(垂直水平居中)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.ossi.cn%2F2011-11%2Fcss-white-space%2F&from=http%3A%2F%2Fwww.ossi.cn%2F2011-07%2Fjquery-styleswitch%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">通过CSS强制内容不换行</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ossi.cn/2011-07/jquery-styleswitch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

