<?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://www.78wd.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.78wd.com</link>
	<description>i PanGel,and U</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:26:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>不使用多余标签清除浮动的方法</title>
		<link>http://www.78wd.com/clearfloat/</link>
		<comments>http://www.78wd.com/clearfloat/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 13:01:43 +0000</pubDate>
		<dc:creator>pangel</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[clear float]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[清除浮动]]></category>

		<guid isPermaLink="false">http://www.78wd.com/?p=550</guid>
		<description><![CDATA[俗话说的好，凡事有利必有弊，浮动是div+css布局最常用到的技巧但同时又是引发页面问题的最常见的原因，例如父元素不能闭合具有浮动属性的子元素，是这些问题中最常见且最让人头痛的一个。通常清除浮动最常用的一个方法是添加一个标签并令其“clear:both”，这里介绍的是不增加这种额外的标签而实现清除浮动。 &#60;style type=&#34;text/css&#34;&#62; .clearfix:after { content: &#34;.&#34;; display: block; height: 0; clear: both; visibility: hidden; } .clearfix { display: inline-block; } /* Hides from IE-mac \*/ * html .clearfix { height: 1%; } .clearfix { display: block; } /* End &#8230; <a href="http://www.78wd.com/clearfloat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>俗话说的好，凡事有利必有弊，浮动是div+css布局最常用到的技巧但同时又是引发页面问题的最常见的原因，例如父元素不能闭合具有浮动属性的子元素，是这些问题中最常见且最让人头痛的一个。通常清除浮动最常用的一个方法是添加一个标签并令其“clear:both”，这里介绍的是不增加这种额外的标签而实现清除浮动。</p>
<pre class="brush: css;">
&lt;style type=&quot;text/css&quot;&gt;
.clearfix:after {
content: &quot;.&quot;;
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix {
display: inline-block;
}
/* Hides from IE-mac \*/
* html .clearfix {
height: 1%;
}
.clearfix {
display: block;
}
/* End hide from IE-mac */
&lt;/style&gt;
</pre>
<p>用法是在需要清除浮动的标签上增加一个clearfix的class。<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1742180668176433";
/* 468x60, 创建于 10-3-25 */
google_ad_slot = "2888733453";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.78wd.com/clearfloat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让自动宽度的LI标签自动换行</title>
		<link>http://www.78wd.com/li-auto-enter/</link>
		<comments>http://www.78wd.com/li-auto-enter/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 11:04:36 +0000</pubDate>
		<dc:creator>pangel</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[li自动换行]]></category>

		<guid isPermaLink="false">http://www.78wd.com/?p=543</guid>
		<description><![CDATA[最近在修改akcms做的一个英文垃圾站的时候用自动宽度的li标签做导航的循环输出，发现在IE下显示的时候由于li标签不能自动换行而li内的文字又太多时，导致li内的文字把li标签撑高，而Firefox下显示正常，查了半天资料发现这种情况只需要在li的样式中加入 white-space: nowrap; 即可让li标签整个自动换行。]]></description>
			<content:encoded><![CDATA[<p>最近在修改akcms做的一个英文垃圾站的时候用自动宽度的li标签做导航的循环输出，发现在IE下显示的时候由于li标签不能自动换行而li内的文字又太多时，导致li内的文字把li标签撑高，而Firefox下显示正常，查了半天资料发现这种情况只需要在li的样式中加入</p>
<pre class="brush: css;">white-space: nowrap;</pre>
<p>即可让li标签整个自动换行。<br />
<script type="text/javascript"><!--
google_ad_client = "pub-1742180668176433";
/* 468x60, 创建于 10-3-25 */
google_ad_slot = "2888733453";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.78wd.com/li-auto-enter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)

Served from: www.78wd.com @ 2012-02-10 02:40:16 -->
