<?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>网贝&#124;BT&#039;s Home &#187; css</title>
	<atom:link href="http://webabie.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://webabie.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 13:23:25 +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>[求助]一个关于.swf对象的网页布局问题</title>
		<link>http://webabie.com/problem-swf-align-center/</link>
		<comments>http://webabie.com/problem-swf-align-center/#comments</comments>
		<pubDate>Tue, 19 May 2009 11:54:34 +0000</pubDate>
		<dc:creator>blacktulip</dc:creator>
				<category><![CDATA[本站相关]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://webabie.com/?p=1459</guid>
		<description><![CDATA[这个问题是：如何把一个swf视频在浏览器中上下左右都居中 情况是，一个960*540的swf视频，放在一个网页里面，要求在网页的中央位置，水平居中还好办，垂直居中怎么也搞不定。要求在不同分... ]]></description>
			<content:encoded><![CDATA[<p>这个问题是：如何把一个swf视频在浏览器中上下左右都居中</p>
<p>情况是，一个960*540的swf视频，放在一个网页里面，要求在网页的中央位置，水平居中还好办，垂直居中怎么也搞不定。要求在不同分辨率，不同浏览器下效果相同或者差不多。请达人指条路吧，css，表格，什么 都行。</p>
<p>另外，顺便求教如何把这个视频用一个像素宽度勾个框，谢谢。</p>
<p class="announce">转载请注明转自《<a rel="bookmark" title="[求助]一个关于.swf对象的网页布局问题" href="http://webabie.com/problem-swf-align-center/">[求助]一个关于.swf对象的网页布局问题</a>》</p><h2  class="related_post_title">也许相关的文章</h2><ul class="related_post"><li><a href="http://webabie.com/switch-style-sheet-real-time/" title="在WordPress页面中直接切换css文件">在WordPress页面中直接切换css文件</a></li><li><a href="http://webabie.com/css-naked-day/" title="今天我裸奔">今天我裸奔</a></li></ul><hr />
<p><small>© blacktulip for <a href="http://webabie.com">网贝|BT&#039;s Home</a>, 2009. |
<a href="http://webabie.com/problem-swf-align-center/">[求助]一个关于.swf对象的网页布局问题</a> |
<a href="http://webabie.com/problem-swf-align-center/#comments">16 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://webabie.com/problem-swf-align-center/&title=[求助]一个关于.swf对象的网页布局问题">del.icio.us</a>
<br/>
Post tags: <a href="http://webabie.com/tag/css/" rel="tag">css</a>, <a href="http://webabie.com/tag/help/" rel="tag">help</a>, <a href="http://webabie.com/tag/swf/" rel="tag">swf</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://webabie.com/problem-swf-align-center/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>在WordPress页面中直接切换css文件</title>
		<link>http://webabie.com/switch-style-sheet-real-time/</link>
		<comments>http://webabie.com/switch-style-sheet-real-time/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 19:49:46 +0000</pubDate>
		<dc:creator>blacktulip</dc:creator>
				<category><![CDATA[WordPress主题]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://webabie.com/switch-style-sheet-real-time/</guid>
		<description><![CDATA[有些WordPress站点可以通过点击几个色块立即更改整个站点的配色，实际上是即时切换了style sheet(css)文件，切换css文件不仅可以改配色，还可以改变整个主题，这种华丽的效果在代码上如何实现... ]]></description>
			<content:encoded><![CDATA[<p>首先请看以下这三个用WordPress搭建的站点：</p>
<ul>
<li><a rel="nofollow" href="http://wpthemes.blogohblog.net/index.php?wptheme=Xplosive+Reloaded" target="_blank">Xplosive Reloaded</a> </li>
<li><a rel="nofollow" href="http://wpthemes.blogohblog.net/index.php?wptheme=Wicked+Lemon" target="_blank">Wicked Lemon</a> </li>
<li><a rel="nofollow" href="http://www.wpdesigner.com/demo/index.php?preview=Wpdesigner7" target="_blank">Wpdesigner7</a> </li>
</ul>
<p>注意它们的右上角位置都有几个色块，点击这几个色块，可以立即更改整个站点的配色，实际上是即时切换了style sheet(css)文件，以实现这种效果。其实切换css文件可不仅仅可以改配色，把整个主题翻个底朝天都不难。那么这种华丽的效果在代码上是如何实现的呢？<a href="http://www.blogohblog.com/integrating-alternative-stylesheets/" target="_blank">BlogOhBlog的Jai专门写了一篇文章</a>教导大家。当然了，<a href="http://webabie.com/">blacktulip</a>很乐意将其用方块字重新描述一遍与大家分享。</p>
<p><span id="more-741"></span></p>
</p>
<p>第一步，让我们来看看WordPress是怎样调用css文件的，在header.php里头，可以找到类似：</p>
<blockquote><p><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php bloginfo('stylesheet_url'); ?&gt;&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;</em></code> </p></blockquote>
<p>这样的一行，其中rel=&quot;stylesheet&quot;说明这是在调用css。</p>
<p>好，现在假设你有两个别的css文件，一个叫orange.css，另一个叫blue.css，你希望站点能实时切换这几个css文件，那要怎么办呢？</p>
<p>首先必须在header里面加入定义，把那两个css文件放在你正在使用的模板目录下(也就是原始的style.css所在的路径)，然后在header.php方才那行的下面加上这样两行：</p>
<blockquote><p><code>&lt;link rel=&quot;alternate stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/orange.css&quot; media=&quot;screen&quot; title=&quot;orange&quot; /&gt;</code></p>
<p><code>&lt;link rel=&quot;alternate stylesheet&quot; type=&quot;text/css&quot; href=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/blue.css&quot; media=&quot;screen&quot; title=&quot;blue&quot; /&gt;</code></p>
</blockquote>
<p>当然，也可以放在别的地方，以上两行的路径做相应修改即可。</p>
<p>其次，<a href="http://download.webabie.com/styleswitcher.js" target="_blank">点击下载styleswitcher.js文件</a>，将其也放在正在使用的模板目录下。</p>
<p>接着，继续编辑header.php，在&lt;/header&gt;标签前面加上调用这个js文件的代码：</p>
<blockquote><p><code>&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php bloginfo('template_directory'); ?&gt;/styleswitcher.js&quot;&gt;&lt;/script&gt;</code></p>
</blockquote>
<p>最后，就是在你的WordPress页面中加入几个按钮来切换css。这就没有什么统一的代码了，你想怎么弄都行，发挥想象力吧。下面是一例，随便在模板哪个地方加上：</p>
<blockquote><p><code>&lt;a style=&quot;color:#ffffff;&quot; title=&quot;Orange&quot; onclick=&quot;setActiveStyleSheet('orange'); return false;&quot; href=&quot;#&quot;&gt;Orange&lt;/a&gt; &lt;a style=&quot;color:#ffffff;&quot; title=&quot;Blue&quot; onclick=&quot;setActiveStyleSheet('blue'); return false;&quot; href=&quot;#&quot;&gt;Blue&lt;/a&gt;</code></p>
</blockquote>
<p>那么，教程结束了，很简单吧。自己动手试试看？</p>
<p class="announce">转载请注明转自《<a rel="bookmark" title="在WordPress页面中直接切换css文件" href="http://webabie.com/switch-style-sheet-real-time/">在WordPress页面中直接切换css文件</a>》</p><h2  class="related_post_title">也许相关的文章</h2><ul class="related_post"><li><a href="http://webabie.com/wordpress-themes-infinity/" title="Infinity: 华丽无比的WordPress主题">Infinity: 华丽无比的WordPress主题</a></li><li><a href="http://webabie.com/wordpress-theme-for-child-honey-spring/" title="小孩的WordPress主题Honey Spring">小孩的WordPress主题Honey Spring</a></li><li><a href="http://webabie.com/firebug-wordpress-theme-from-blogohblog/" title="BlogOhBlog新作 &#8212; Firebug主题For WordPress">BlogOhBlog新作 &#8212; Firebug主题For WordPress</a></li><li><a href="http://webabie.com/gridblog-wordpress-theme-from-blogohblog/" title="最简洁的WordPress模板:Gridblog">最简洁的WordPress模板:Gridblog</a></li><li><a href="http://webabie.com/wordpress-themes-wpfreemium-mystefied-blue-weed/" title="今日主题更新: WPFreemium &#124; Mystefied &#124; Blue weed">今日主题更新: WPFreemium &#124; Mystefied &#124; Blue weed</a></li></ul><hr />
<p><small>© blacktulip for <a href="http://webabie.com">网贝|BT&#039;s Home</a>, 2008. |
<a href="http://webabie.com/switch-style-sheet-real-time/">在WordPress页面中直接切换css文件</a> |
<a href="http://webabie.com/switch-style-sheet-real-time/#comments">7 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://webabie.com/switch-style-sheet-real-time/&title=在WordPress页面中直接切换css文件">del.icio.us</a>
<br/>
Post tags: <a href="http://webabie.com/tag/css/" rel="tag">css</a>, <a href="http://webabie.com/tag/wordpress/" rel="tag">wordpress</a>, <a href="http://webabie.com/tag/%e6%a8%a1%e6%9d%bf/" rel="tag">模板</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://webabie.com/switch-style-sheet-real-time/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>今天我裸奔</title>
		<link>http://webabie.com/css-naked-day/</link>
		<comments>http://webabie.com/css-naked-day/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 23:00:29 +0000</pubDate>
		<dc:creator>blacktulip</dc:creator>
				<category><![CDATA[不吐不快]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[裸奔]]></category>

		<guid isPermaLink="false">http://blacktulip.cn/css-naked-day/</guid>
		<description><![CDATA[http://naked.dustindiaz.com/ 今天是css裸奔日，哈哈，我就裸这么一天吧。 转载请注明转自《今天我裸奔》也许相关的文章[求助]一个关于.swf对象的网页布局问题在WordPress页面中直接切换css文件 © blac... ]]></description>
			<content:encoded><![CDATA[<p><a title="http://naked.dustindiaz.com/" href="http://naked.dustindiaz.com/">http://naked.dustindiaz.com/</a></p>
<p>今天是css裸奔日，哈哈，我就裸这么一天吧。</p>
<p class="announce">转载请注明转自《<a rel="bookmark" title="今天我裸奔" href="http://webabie.com/css-naked-day/">今天我裸奔</a>》</p><h2  class="related_post_title">也许相关的文章</h2><ul class="related_post"><li><a href="http://webabie.com/problem-swf-align-center/" title="[求助]一个关于.swf对象的网页布局问题">[求助]一个关于.swf对象的网页布局问题</a></li><li><a href="http://webabie.com/switch-style-sheet-real-time/" title="在WordPress页面中直接切换css文件">在WordPress页面中直接切换css文件</a></li></ul><hr />
<p><small>© blacktulip for <a href="http://webabie.com">网贝|BT&#039;s Home</a>, 2008. |
<a href="http://webabie.com/css-naked-day/">今天我裸奔</a> |
<a href="http://webabie.com/css-naked-day/#comments">One comment</a> |
Add to
<a href="http://del.icio.us/post?url=http://webabie.com/css-naked-day/&title=今天我裸奔">del.icio.us</a>
<br/>
Post tags: <a href="http://webabie.com/tag/css/" rel="tag">css</a>, <a href="http://webabie.com/tag/%e8%a3%b8%e5%a5%94/" rel="tag">裸奔</a><br/>
</small></p>
<p><small>Feed enhanced by <a href='http://planetozh.com/blog/my-projects/wordpress-plugin-better-feed-rss/'>Better Feed</a> from  <a href='http://planetozh.com/blog/'>Ozh</a></small></p>
]]></content:encoded>
			<wfw:commentRss>http://webabie.com/css-naked-day/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

