<?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://jiahu.net/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://jiahu.net</link>
	<description>我在路上, 你不在身旁. 想你的时候, 温暖依然.</description>
	<lastBuildDate>Fri, 23 Mar 2012 04:47:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>IE6下的几个CSS问题 [转载]</title>
		<link>http://jiahu.net/ie6%e4%b8%8b%e7%9a%84%e5%87%a0%e4%b8%aacss%e9%97%ae%e9%a2%98-%e8%bd%ac%e8%bd%bd.htm</link>
		<comments>http://jiahu.net/ie6%e4%b8%8b%e7%9a%84%e5%87%a0%e4%b8%aacss%e9%97%ae%e9%a2%98-%e8%bd%ac%e8%bd%bd.htm#comments</comments>
		<pubDate>Mon, 21 Jun 2010 20:43:25 +0000</pubDate>
		<dc:creator>@ouc</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[笔记]]></category>

		<guid isPermaLink="false">http://jiahu.net/?p=1532</guid>
		<description><![CDATA[以下内容全部转载自 http://goo.gl/m4Pg，作为笔记记录一下，方便以后查看 ie7和firefox都较为严格的遵循w3c的标准, 不存在太大的兼容性问题. ie6存在很多bug, 我就此说说我的一些经验, 仅仅是经验,毫无科学依据, 尽量避免使用hack 其一, 去掉&#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243; ?&#62; 只要存在这个玩意,ie6就不买帐 配合严格或者兼容的xhtml dtd 其二, 浮动双边距,以下任选 1.用padding 2.使margin和float方向不同 3.使用_margin 其三, 使用margin-top实现文本,表单元素,图片一行内垂直居中对齐. 其四, 多猪 由注释引起,小心使用注释 使用margin-right:-3px;定义最后的元素 PS: 这里有完整的测试多猪问题的过程 http://goo.gl/3Tlx 其五, 注释 不要在连续的float元素之间插入注释 建议在元素内部定义该元素的注释 其六, margin,padding的自动赋值问题 定义margin-left,就算margin-right定位0,有时候也会莫名奇妙的margin-right=margin-left 暂无解决办法,只有牺牲点美观换取兼容 其七, 默认div高, 定义font-size&#60;=height]]></description>
			<content:encoded><![CDATA[<p>以下内容全部转载自 <a href="http://goo.gl/m4Pg" target="_blank">http://goo.gl/m4Pg</a>，作为笔记记录一下，方便以后查看</p>
<blockquote><p>ie7和firefox都较为严格的遵循w3c的标准, 不存在太大的兼容性问题. ie6存在很多bug, 我就此说说我的一些经验, 仅仅是经验,毫无科学依据, 尽量避免使用hack</p>
<p>其一, 去掉&lt;?xml version=”1.0&#8243; encoding=”utf-8&#8243; ?&gt;<br />
只要存在这个玩意,ie6就不买帐<br />
配合严格或者兼容的xhtml dtd</p>
<p>其二, 浮动双边距,以下任选<br />
1.用padding<br />
2.使margin和float方向不同<br />
3.使用_margin</p>
<p>其三, 使用margin-top实现文本,表单元素,图片一行内垂直居中对齐.</p>
<p>其四, 多猪<br />
由注释引起,小心使用注释<br />
使用margin-right:-3px;定义最后的元素<br />
PS: 这里有完整的测试多猪问题的过程 <a href="http://goo.gl/3Tlx" target="_blank">http://goo.gl/3Tlx</a></p>
<p>其五, 注释<br />
不要在连续的float元素之间插入注释<br />
建议在元素内部定义该元素的注释</p>
<p>其六, margin,padding的自动赋值问题<br />
定义margin-left,就算margin-right定位0,有时候也会莫名奇妙的margin-right=margin-left<br />
暂无解决办法,只有牺牲点美观换取兼容</p>
<p>其七, 默认div高,<br />
定义font-size&lt;=height</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/ie6%e4%b8%8b%e7%9a%84%e5%87%a0%e4%b8%aacss%e9%97%ae%e9%a2%98-%e8%bd%ac%e8%bd%bd.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在HTML页中添加打印换页符</title>
		<link>http://jiahu.net/%e5%9c%a8html%e9%a1%b5%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%89%93%e5%8d%b0%e6%8d%a2%e9%a1%b5%e7%ac%a6.htm</link>
		<comments>http://jiahu.net/%e5%9c%a8html%e9%a1%b5%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%89%93%e5%8d%b0%e6%8d%a2%e9%a1%b5%e7%ac%a6.htm#comments</comments>
		<pubDate>Wed, 05 Aug 2009 06:03:15 +0000</pubDate>
		<dc:creator>@ouc</dc:creator>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://jiahu.net/?p=1110</guid>
		<description><![CDATA[第一页内容&#8230; &#60;div style=”page-break-after: always;”&#62;&#60;/div&#62; 第二页内容&#8230;]]></description>
			<content:encoded><![CDATA[<p>第一页内容&#8230;</p>
<p>&lt;div style=”page-break-after: always;”&gt;&lt;/div&gt;</p>
<p>第二页内容&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/%e5%9c%a8html%e9%a1%b5%e4%b8%ad%e6%b7%bb%e5%8a%a0%e6%89%93%e5%8d%b0%e6%8d%a2%e9%a1%b5%e7%ac%a6.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在IE浏览器中模拟实现图片CSS的 max-width</title>
		<link>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm</link>
		<comments>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm#comments</comments>
		<pubDate>Mon, 15 Jun 2009 09:04:00 +0000</pubDate>
		<dc:creator>@ouc</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[样式]]></category>

		<guid isPermaLink="false">http://jiahu.net/?p=985</guid>
		<description><![CDATA[非IE浏览器: .post-body img {max-width:400px;} IE: .post-body img { max-width:400px; width: expression(this.width &#62; 400 ? 400: true); } 非IE浏览器: .post-body img {max-width:95%;} IE: 无法实现百分比的最大值 特别说明: 如果图片放在一个容器中时, 即使设置了容器的max-width值, 也需要设置图片的max-width值, 否则图片还是会撑开容器的尺寸. #sidebar {width:220px; width: expression(this.width &#62; 220 ? 220: true); } #sidebar img {max-width:200px; width: expression(this.width &#62; 200 ? 200: true); } 来源: http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html]]></description>
			<content:encoded><![CDATA[<p>非IE浏览器:</p>
<blockquote><p>.post-body img {max-width:400px;}</p></blockquote>
<p>IE:</p>
<blockquote><p>.post-body img {<br />
max-width:400px;<br />
width: expression(this.width &gt; 400 ? 400: <span style="color: #ff0000;">true</span>);<br />
}</p></blockquote>
<p>非IE浏览器:</p>
<blockquote><p>.post-body img {max-width:95%;}</p></blockquote>
<p>IE:</p>
<blockquote><p>无法实现百分比的最大值</p></blockquote>
<p>特别说明:</p>
<blockquote><p>如果图片放在一个容器中时, 即使设置了容器的max-width值, 也需要设置图片的max-width值, 否则图片还是会撑开容器的尺寸.</p>
<p>#sidebar {width:220px;<br />
width: expression(this.width &gt; 220 ? 220: true);<br />
}</p>
<p>#sidebar <span style="color: #ff0000;">img </span>{max-width:200px;<br />
width: expression(this.width &gt; 200 ? 200: true);<br />
}</p></blockquote>
<p>来源: <a href="http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html" target="_blank">http://phydeaux3.blogspot.com/2006/01/max-width-and-faking-it-for-ie.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jiahu.net/%e5%9c%a8ie%e6%b5%8f%e8%a7%88%e5%99%a8%e4%b8%ad%e6%a8%a1%e6%8b%9f%e5%ae%9e%e7%8e%b0%e5%9b%be%e7%89%87css%e7%9a%84-max-width.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

