<?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; 代码</title>
	<atom:link href="http://as30.com/tags/%e4%bb%a3%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://as30.com</link>
	<description></description>
	<lastBuildDate>Thu, 02 Feb 2012 08:31:23 +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>css的一个简单遮罩层，仅仅一个div就可以实现</title>
		<link>http://as30.com/css-div-zhezhaoceng-477</link>
		<comments>http://as30.com/css-div-zhezhaoceng-477#comments</comments>
		<pubDate>Wed, 21 Sep 2011 14:45:14 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[wordpress文章]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[样式表]]></category>
		<category><![CDATA[遮罩层]]></category>

		<guid isPermaLink="false">http://as30.com/css-div-zhezhaoceng-477</guid>
		<description><![CDATA[考试结束归来，看到有留言说想要我网页上的遮罩层效果，那就放出来把。
其实就是一个很简单的遮罩，没有利用任何的其他技术。下面是代码：
样式表：
&#60;style type=&#34;text/css&#34;&#62;      &#60;!&#8211;       *{padding:0;mar[......]<p class='read-more'><a href='http://as30.com/css-div-zhezhaoceng-477'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>考试结束归来，看到有留言说想要我网页上的遮罩层效果，那就放出来把。</p>
<p>其实就是一个很简单的遮罩，没有利用任何的其他技术。下面是代码：</p>
<p>样式表：</p>
<blockquote><p>&lt;style type=&quot;text/css&quot;&gt;      <br />&lt;!&#8211;       <br />*{padding:0;margin:0}&#160; <br />.pop{z-index:1;background-color:black;opacity:.60;filter: alpha(opacity=60);font-size:60px;font-weight:bold;color:red;position:absolute;left:0%;top:60%;width:100%;height:45px;display:block}       <br />&#8211;&gt;&lt;/style&gt;</p>
</blockquote>
<p>显示在网页上的一个层：</p>
<blockquote><p>&lt;div id=&quot;pop1&quot; class=&quot;pop&quot; style=&quot;text-align:center&quot;&gt;暂停更新 又到一年考试时&#8230;&lt;/div&gt;</p>
</blockquote>
<p>最终的结果:</p>
<p><iframe style="padding-bottom: 0px; background-color: #fcfcfc; padding-left: 0px; width: 320px; padding-right: 0px; height: 179px; padding-top: 0px" title="Preview" marginheight="0" src="https://skydrive.live.com/embedphoto.aspx/as/%e6%82%ac%e5%81%9c.jpg?cid=ca7e8d7689164773&amp;sc=photos" frameborder="0" marginwidth="0" scrolling="no"></iframe></p>
<p>具体的参数自己可以修改，有点html底子的都可以做到。呵呵~</p>
<p>最后还有一点需要注明的是，在IE6及以下是不看不到滴…</p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/css-div-zhezhaoceng-477/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>网站变成灰白色调的方法</title>
		<link>http://as30.com/huibai-4</link>
		<comments>http://as30.com/huibai-4#comments</comments>
		<pubDate>Tue, 12 May 2009 01:38:45 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[地震]]></category>

		<guid isPermaLink="false">http://as30.com/%e7%bd%91%e7%ab%99%e5%8f%98%e6%88%90%e7%81%b0%e7%99%bd%e8%89%b2%e8%b0%83%e7%9a%84%e6%96%b9%e6%b3%95-4.html</guid>
		<description><![CDATA[时值5.12地震一周年，很多网站为了纪念或者表示哀悼，都把自己的网站变成了灰白色调。如果你也想用这种方法表示哀悼的话，这里有个很简单的代码，只要在网站的头部[wordpress中是在hearder.php中]或者调用的css页上加入以下代码就可以：
&#60;style&#62;      html {[......]<p class='read-more'><a href='http://as30.com/huibai-4'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>时值5.12地震一周年，很多网站为了纪念或者表示哀悼，都把自己的网站变成了灰白色调。如果你也想用这种方法表示哀悼的话，这里有个很简单的代码，只要在网站的头部[wordpress中是在hearder.php中]或者调用的css页上加入以下代码就可以：</p>
<blockquote><p>&lt;style&gt;      <br />html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); }       <br />&lt;/style&gt;</p>
</blockquote>
<p>如果还不会。。。欢迎来<a href="http://as30.com/" rel="tag">偶的博客</a>留言。。。</p>
<p>最后，对在去年地震中遇难的同胞再次表示沉重哀悼！    </p>
<p><!--aiospwlwbstart<br />
aiosp_title=网站变城灰白色调的方法<br />
aiosp_keywords=地震,css,代码<br />
aiosp_description=时值地震一周年,很多网站为了纪念或者哀悼，把自己的网站变成了灰白色调<br />
aiospwlwbsend--></p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/huibai-4/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>用css在同一个页面中设置不同连接样式</title>
		<link>http://as30.com/css-shezhi-48</link>
		<comments>http://as30.com/css-shezhi-48#comments</comments>
		<pubDate>Mon, 13 Apr 2009 03:43:00 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[wordpress文章]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[链接样式]]></category>

		<guid isPermaLink="false">http://as30.com/css-shezhi-48.html</guid>
		<description><![CDATA[大家都知道想要设置统一的连接样式，只要在css文件中设置a:link,a:visited,ahover,a:active就行了。可以设置全局的连接样式。比如：
a:link,a:visited{    text-decoration:underline;     color:#629300;    [......]<p class='read-more'><a href='http://as30.com/css-shezhi-48'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>大家都知道想要设置统一的连接样式，只要在css文件中设置a:link,a:visited,ahover,a:active就行了。可以设置全局的连接样式。比如：</p>
<p>a:link,a:visited{    <br />text-decoration:underline;     <br />color:#629300;     <br />}     <br />a:hover,a:active{     <br />text-decoration:none;     <br />}</p>
<p>但是有的时候为了一些效果，想要设置一些针对某些特殊连接的样式，就需要在CSS中继续进行加工了。常用的方式有：</p>
<p>1.增加连接样式命名：    <br />a.red:link { color: #FF0000; text-decoration: none;}     <br />a.red:visited { color: #FF0000; text-decoration: none;}     <br />a.red:hover { color: #606060; text-decoration: underline;}     <br />a.red:active { color: #606060; text-decoration: underline;}</p>
<p>2.div定义命名：    <br />div.other a:link,a:visited,a:hover,a:active{ text-decoration:none;     <br />color:#eefffe;     <br />font-size:28;     <br />}</p>
<p>以上两种方式可以结合使用，在同一个html文件中调用的代码如下：    <br />&lt;a href=”http://as30.com”&gt;三十而立&lt;/a&gt;/*默认的连接样式*/     <br />&lt;a class=”red” href=”http://as30.com”&gt;三十而立&lt;/a&gt;/*第一种设置连接样式的方式*/     <br />&lt;div class=”other”&gt;     <br />&lt;a class=”other” herf=”http://www.as30.com”&gt;普洱和潘多拉的博客&lt;/a&gt;     <br />&lt;/div&gt;/*第二种设置连接样式的方式*/</p>
<p>变化的方式自己可以变通掌握。呵呵~有问题欢迎一起探讨。</p>
<p> <!--aiospwlwbstart<br />
aiosp_title=用css在同一个页面中设置不同连接样式<br />
aiosp_keywords=css, 代码, 链接样式<br />
aiosp_description=用css在同一个页面中设置不同连接样式的代码源文件,有兴趣可以一起探讨<br />
aiospwlwbsend--></p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/css-shezhi-48/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wp主题代码参考-header文件</title>
		<link>http://as30.com/wp-header-37</link>
		<comments>http://as30.com/wp-header-37#comments</comments>
		<pubDate>Tue, 17 Mar 2009 03:13:00 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[wordpress文章]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://as30.com/wp-header-37.html</guid>
		<description><![CDATA[几经周转找来的，应该是比较准确。放到这里随时备用：） 代码原文：    
&#160; &#60;?php if (is_single() OR is_page() OR is_home()) : ?&#62;&#60;meta name=”robots”    &#160; content=”index[......]<p class='read-more'><a href='http://as30.com/wp-header-37'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>几经周转找来的，应该是比较准确。放到这里随时备用：） 代码原文：    </p>
<blockquote><p>&#160; &lt;?php if (is_single() OR is_page() OR is_home()) : ?&gt;&lt;meta name=”robots”    <br />&#160; content=”index,follow” /&gt;&lt;?php else : ?&gt;&lt;meta name=”robots”     <br />&#160; content=”noindex,follow” /&gt;&lt;?php endif; ?&gt;</p></blockquote>
<p>代码放置的位置：在&lt;head&gt;&lt;/head&gt;之间就可以了。 </p>
<p>代码效果：可以防止搜索引擎收录WP中过多的重复文章，因为WP本身的问题会造成一些存档和个人页面的重复收录，至于为什么要防止搜索引擎收录，自己想吧：） </p>
<p>本代码仅供参考，若使用中出现问题，请自行解决。不过如果你真的找不到答案，也可以给我留言，一起促进：）</p>
<p><!--aiospwlwbstart<br />
aiosp_title=wp主题代码参考-header文件<br />
aiosp_keywords=header, wordpress, 主题, 代码<br />
aiosp_description=wp主题代码参考-header文件<br />
aiospwlwbsend--></p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/wp-header-37/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css速记卡-css-cheat-sheet(V2)-下载</title>
		<link>http://as30.com/css-cheat-sheet-51</link>
		<comments>http://as30.com/css-cheat-sheet-51#comments</comments>
		<pubDate>Tue, 03 Mar 2009 03:57:00 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[互联网络]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[链接样式]]></category>

		<guid isPermaLink="false">http://as30.com/css-cheat-sheet-51.html</guid>
		<description><![CDATA[好东西，放这里好了。CSS速记卡，2.0版本。英文的，不过单词很简单，将就着看看吧：）哪句看不懂，偶给你翻译！
下载地址：1.PDF版的2.0速记，点这里下载；
2.png版的2.0速记卡。下面的图，直接点右键另存即可：） 
css速记卡2.0&#160; 作者博客地址：http://www.add[......]<p class='read-more'><a href='http://as30.com/css-cheat-sheet-51'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>好东西，放这里好了。CSS速记卡，2.0版本。英文的，不过单词很简单，将就着看看吧：）哪句看不懂，偶给你翻译！</p>
<p>下载地址：1.PDF版的2.0速记，点这里下载；</p>
<p>2.png版的2.0速记卡。下面的图，直接点右键另存即可：） </p>
<p>css速记卡2.0&#160; 作者博客地址：http://www.addedbytes.com/，里面还有其他的一些速记卡下载，值得去看看。</p>
<p><!--aiospwlwbstart<br />
aiosp_title=css速记卡-css-cheat-sheet(V2)-下载<br />
aiosp_keywords=css,下载<br />
aiosp_description=好东西，放这里好了。CSS速记卡，2.0版本。英文的<br />
aiospwlwbsend--></p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/css-cheat-sheet-51/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress主题学习笔记-header、index代码收集</title>
		<link>http://as30.com/wordpress-theme-code-32</link>
		<comments>http://as30.com/wordpress-theme-code-32#comments</comments>
		<pubDate>Tue, 24 Feb 2009 02:54:00 +0000</pubDate>
		<dc:creator>普洱</dc:creator>
				<category><![CDATA[wordpress文章]]></category>
		<category><![CDATA[主题]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[收集]]></category>

		<guid isPermaLink="false">http://as30.com/wordpress-theme-code-32.html</guid>
		<description><![CDATA[WordPress主题学习笔记-header、index代码收集   <strong>1</strong>.&#60;?php bloginfo(‘stylesheet_url’); ?&#62;    解释：&#60;?php :开始PHP代码；    Bloginfo(‘stylesheet_url’) :调用style.css文件所[......]<p class='read-more'><a href='http://as30.com/wordpress-theme-code-32'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>WordPress主题学习笔记-header、index代码收集   <br /><strong>1</strong>.&lt;?php bloginfo(‘stylesheet_url’); ?&gt;    <br />解释：&lt;?php :开始PHP代码；    <br />Bloginfo(‘stylesheet_url’) :调用style.css文件所在的路径；    <br />； ：停止调用函数。分号是用来结束一个PHP语句；    <br />?&gt; :结束PHP代码。</p>
<p><strong>2</strong>.&lt;?php bloginfo(‘name’); ?&gt;    <br />解释：&lt;?php :开始php代码；    <br />Bloginfo(‘name’) ：调用博客信息，具体是博客的标题；    <br />； ：结束调用博客信息；    <br />?&gt; ：结束PHP代码。</p>
<p>3.&lt;?php bloginfo(‘url’) ?&gt;    <br />解释：调用博客的链接地址。</p>
<p>4.&lt;?php bloginfo(‘description’) ?&gt;    <br />解释：&lt;?php ：开始php代码；    <br />Bloginfo(‘description’) ：调用博客信息，具体的是描述；    <br />； ：停止调用；    <br />?&gt; ：结束PHP代码；</p>
<p>5.&lt;?php if(have_posts()): ?&gt;&lt;?php while(have_posts()):the_post()); ?&gt;    <br />&lt;?php endwhile; ?&gt;    <br />&lt;?php endif; ?&gt;    <br />解释：if(have_posts()) ：检查你的博客是否有日志；    <br />While(have_posts()) ：如果你有，当你有日志的时候，执行the_post这个函数；    <br />The_post() ：调用具体日志来显示；    <br />Endwhile; ：遵照规则#1，这里用于关闭while()；    <br />Endif; ：关闭if()；    <br />注释     <br />：并不是所有的代码都需要两部分，为了打开和关闭自己。有些能够自我关闭，这就解释了have_posts()和the_post();这两个函数。因为the_post();在if()和while()的外面，它需要分号去结束或者关闭自己。    </p>
<p>6.&lt;?php the_title(); ?&gt;   <br />解释：调用博客中的日志标题。</p>
<p>7.&lt;?php the_permalink(); ?&gt;    <br />解释：调用每篇日志链接地址的一个函数。</p>
<p>8.&lt;?php the_content() ?&gt;    <br />解释：调用每篇日志内容的一个函数。</p>
<p>9.&lt;p class=”postmetadata”&gt;    <br />&lt;?php _e(’Filed under&amp;#58;’); ?&gt; &lt;?php the_category(’, ‘) ?&gt; &lt;?php _e(’by’); ?&gt;     <br />&lt;?php the_author(); ?&gt;&lt;br /&gt;    <br />&lt;?php comments_popup_link(’No Comments &amp;#187;’, ‘1 Comment &amp;#187;’, ‘% Comments     <br />&amp;#187;’); ?&gt; &lt;?php edit_post_link(’Edit’, ‘ &amp;#124; ‘, ”); ?&gt;    <br />&lt;/p&gt;    <br />解释：&lt;p class=”postmetadata”&gt;和&lt;/p&gt; ：所有的日志元数据都在一个 class=”postmetadata”     <br />的段落标签中，因为我想把日志元数据和日志内容区分开。如果没有段落标签，日志元数据信息将在日志内容结束的地方继续，这将没有任何间距去区别内容和日志元数据；    <br />&lt;?php _e(‘Filed under&amp;#58′); ?&gt; ：是调用是调用冒号”:”的代码；    <br />&lt;?php the_category(‘,’) ?&gt; ：the_category() 是用来调用你当前日志的在的所有类别的 PHP 函数。如果你把 Filed     <br />under: 和 the_category()放在一起，你可以得到： Filed under: Name of category 1, Name of     <br />category 2。the_category() 中的逗号是用来区分类别名。返回日志元数据的屏幕截图，你可以注意到在类别连接中的逗号；    <br />&lt;?php _e(‘by’); ?&gt; ：和 Filed under:一样。如果你创建私人用的的主题， by 外面的 _e() 不是必须的。_e()     <br />是用来创建可以翻译的主题，如果主题被来自不同国家的上百人使用的话，这是非常重要的。如果你是创建公共使用的主题，最后加上 _e() 以便你的主题可翻译化；    <br />&lt;?php the_author(); ?&gt; ：它是输入当前日志作者的名字。    <br />&lt;br /&gt; ：如果你想要一个空行，又不想用段落标签来产生间距，使用BR，注意斜线/，这是能自我关闭的标签。    <br />&lt;?php comments_popup_link(’No Comments &amp;#187;’, ‘1 Comment &amp;#187;’, ‘% Comments     <br />&amp;#187;’); ?&gt;     <br />：当弹出留言的功能激活的话，comments_popup_link()调用一个弹出的留言窗口。如果没有激活，comments_popup_link()则只是简单的现实留言列表。No     <br />Comments »是在没有留言的时候显示的。1 Comment » 是用于当你刚好有1条留言时候。% Comments &amp;amp;187;     <br />是用于当你有多于一条留言的时候。比如：8 Comments »。百分号 % 用来显示数字。» 是用来显示一个双层箭头 »。    <br />&lt;?php edit_post_link(’Edit’, ‘ &amp;#124; ‘, ”); ?&gt;     <br />：这个只有当你以管理员身份登录的的时候（译者注释：以编辑者，Editor登录也可以）才可见。 edit_post_link()     <br />只是简单为你显示一个可以用来编辑当前日志的编辑链接，这样可以让你不必去管理界面搜寻该日志而能直接编辑。edit_post_link()     <br />有三个参数。第一个是用来确定哪个词你将用在编辑链接的链接标题。如果你使用 Edit post，那么将显示 Edit post 而不是     <br />Edit。第二个参数是用来显示在链接前面的字符，在这里是竖线     <br />|，代码就是&amp;amp;124;。第三个参数是用于显示在编辑链接后面的字符，在这里没有使用，登陆WP以后，再返回到首页就可以看到”Edit”的链接和一条竖线. </p>
<p><!--aiospwlwbstart<br />
aiosp_title=WordPress主题学习笔记-header、index代码收集<br />
aiosp_keywords=主题, 代码, 收集<br />
aiosp_description=我所收集的一些wordpress主题制作中的代码<br />
aiospwlwbsend--></p>
]]></content:encoded>
			<wfw:commentRss>http://as30.com/wordpress-theme-code-32/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

