<?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>仰望星空 &#187; css</title>
	<atom:link href="http://sunshineg.com/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://sunshineg.com</link>
	<description>来自火星，热爱互联网</description>
	<lastBuildDate>Mon, 21 Nov 2011 09:08:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://sunshineg.com/?pushpress=hub'/>
		<item>
		<title>释放自我，疯狂裸奔啊~</title>
		<link>http://sunshineg.com/css-naked-day.html</link>
		<comments>http://sunshineg.com/css-naked-day.html#comments</comments>
		<pubDate>Fri, 09 Apr 2010 03:19:49 +0000</pubDate>
		<dc:creator>Sunny Gao</dc:creator>
				<category><![CDATA[创业]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://sunshineg.com/?p=865</guid>
		<description><![CDATA[<p>Posted in <a href="http://sunshineg.com/category/startup" title="创业">创业</a></p>第五届CSS裸奔节来了，（CSS Naked Day &#8217;10）就在今天。 活动目的 CSS裸奔节的目的是推动Web标准。简洁为美。使用正确的(x)html，语义标记，良好的层次结构。暂时把页面设计抛弃，直接展示&#60;body&#62;吧。 如何参与 到这里填表报名，报名后一个小时内，你的网站会在官方列表中出现。 到了4月9日，将你网站上的CSS移除，抛掉页面设计。 你也可以在那天把以下HTML内容放置于网站顶部： &#60;h3&#62;What happened to the design?&#60;/h3&#62; &#60;p&#62;To know more about why styles are disabled on this website visit the &#60;a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website"&#62; Annual CSS Naked Day&#60;/a&#62; website for more information.&#60;/p&#62; 注：加上这些标注仅仅是为了向你网站的访问者说明情况，并不是为了带来流量或赚钱。CSS裸奔官方网站上没有任何广告，以后也不会放置广告。 活动日期 很多人非常关心CSS裸奔节的活动时间。今年定于4月9日，理由如下： 活动日期应该定于周二、周三或周四，这几天网站流量比较高 时间应该在4月份的第一周前后 不应该是4月1日（要不谁信呢，呵呵） 在活动通告发出至活动日期，至少有五天时间 如何裸奔 下面这个PHP函数可以用来裸奔： &#60;?php function [...]]]></description>
			<content:encoded><![CDATA[<p>Posted in <a href="http://sunshineg.com/category/startup" title="创业">创业</a></p><p>第五届<a href="http://naked.dustindiaz.com/">CSS裸奔节</a>来了，（CSS Naked Day &#8217;10）就在今天。</p>
<h4><strong>活动目的</strong></h4>
<p>CSS裸奔节的目的是推动Web标准。简洁为美。使用正确的(x)html，语义标记，良好的层次结构。暂时把页面设计抛弃，直接展示&lt;body&gt;吧。</p>
<h4>如何参与</h4>
<p>到<a href="http://naked.dustindiaz.com/#signup">这里填表报名</a>，报名后一个小时内，你的网站会在官方列表中出现。</p>
<p>到了4月9日，将你网站上的CSS移除，抛掉页面设计。</p>
<p>你也可以在那天把以下HTML内容放置于网站顶部：</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="400" valign="top"><code>&lt;h3&gt;What happened to the design?&lt;/h3&gt; &lt;p&gt;To know more about why styles are disabled on this website visit the &lt;a href="http://naked.dustindiaz.com" title="Web Standards Naked Day Host Website"&gt; Annual CSS Naked Day&lt;/a&gt; website for more information.&lt;/p&gt; </code></td>
</tr>
</tbody>
</table>
<p>注：加上这些标注仅仅是为了向你网站的访问者说明情况，并不是为了带来流量或赚钱。CSS裸奔官方网站上没有任何广告，以后也不会放置广告。</p>
<h4><strong>活动日期</strong></h4>
<p>很多人非常关心CSS裸奔节的活动时间。今年定于4月9日，理由如下：</p>
<ul>
<li>活动日期应该定于周二、周三或周四，这几天网站流量比较高</li>
<li>时间应该在4月份的第一周前后</li>
<li>不应该是4月1日（要不谁信呢，呵呵）</li>
<li>在活动通告发出至活动日期，至少有五天时间<span id="more-865"></span></li>
</ul>
<h4>如何裸奔</h4>
<p>下面这个PHP函数可以用来裸奔：</p>
<table border="0" cellspacing="0" cellpadding="2" width="400">
<tbody>
<tr>
<td width="400" valign="top">
<pre><code>&lt;?php
function is_naked_day($d) {
  $start = date('U', mktime(-12, 0, 0, 04, $d, date('Y')));
  $end = date('U', mktime(36, 0, 0, 04, $d, date('Y')));
  $z = date('Z') * -1;
  $now = time() + $z;
  if ( $now &gt;= $start &amp;&amp; $now &lt;= $end ) {
    return true;
  }
  return false;
}
?&gt;
</code></pre>
<p>可以这样使用该函数：</p>
<pre><code>&lt;head&gt;
...
&lt;?php
if ( is_naked_day(9) ) {
  echo '&lt;!-- naked day has no styles --&gt;';
} else {
  echo '&lt;link rel="stylesheet" type="text/css" href="styles.css" /&gt;';
}
?&gt;
...
&lt;/head&gt;</code></pre>
</td>
</tr>
</tbody>
</table>
<h4>工具、插件</h4>
<ul>
<li><a href="http://code.google.com/p/php-naked-day-api/">PHP Naked Day Timer Class</a> (作者<a href="http://www.jaaulde.com/">Jim Auldridge</a>)</li>
<li><a href="http://www.ajalapus.com/downloads/css-naked-day/">WordPress Naked Day Plugin</a> (作者<a href="http://www.ajalapus.com/">Aja&#8217;s</a>)</li>
<li><a href="http://tore.darell.no/posts/ready_to_take_my_clothes_off">Rails Helper</a> (作者<a href="http://tore.darell.no/">Tore Darell</a>)</li>
<li>此文剽窃自网络，请作者来找我，嘎嘎</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sunshineg.com/css-naked-day.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

