<?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>IT元素 &#187; 兼容</title>
	<atom:link href="http://www.ourys.com/tags/compatible/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ourys.com</link>
	<description>Hector的编程笔记夹，如果喜欢，收藏一个</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:07:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>css文件编码问题导致ie6显示不正常</title>
		<link>http://www.ourys.com/post/133.html</link>
		<comments>http://www.ourys.com/post/133.html#comments</comments>
		<pubDate>Sat, 15 Aug 2009 17:04:19 +0000</pubDate>
		<dc:creator>Hector</dc:creator>
				<category><![CDATA[HTML/CSS/XML/XSL]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[兼容]]></category>
		<category><![CDATA[编码]]></category>

		<guid isPermaLink="false">http://www.ourys.com/hector/ourys.com/?p=118</guid>
		<description><![CDATA[<p>这两天发现写的css在各大浏览器上都没有问题，可是在ie6上很不正常，这是因为我页面的编码是utf-8,但是css文件的编码是ANSI，这样的结果是css里面的中文（包括中文注释和中文字体）就会有问题，导致页面不正常。解决方法很简单：1、去掉css中的中文，或者用英文代替2、将css文件的格式改为utf-8</p>
]]></description>
			<content:encoded><![CDATA[<p>这两天发现写的<a target="_blank" href="http://www.ourys.com/catalog.asp?tags=css">css</a>在各大浏览器上都没有问题，可是在ie6上很不正常，这是因为我页面的<span class='wp_keywordlink_affiliate'><a href="http://www.ourys.com/tags/coding" title="查看 编码 中的全部文章" target="_blank">编码</a></span>是utf-8,但是<a target="_blank" href="http://www.ourys.com/catalog.asp?tags=css">css</a>文件的<span class='wp_keywordlink_affiliate'><a href="http://www.ourys.com/tags/coding" title="查看 编码 中的全部文章" target="_blank">编码</a></span>是ANSI，这样的结果是<a target="_blank" href="http://www.ourys.com/catalog.asp?tags=css">css</a>里面的中文（包括中文注释和中文字体）就会有问题，导致页面不正常。</p>
<p>解决方法很简单：</p>
<p>1、去掉<a target="_blank" href="http://www.ourys.com/catalog.asp?tags=css">css</a>中的中文，或者用英文代替</p>
<p>2、将<a target="_blank" href="http://www.ourys.com/catalog.asp?tags=css">css</a>文件的格式改为utf-8</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ourys.com/post/133.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>css——网页内容整体居中的三种方法总结（兼容各种浏览器）</title>
		<link>http://www.ourys.com/post/68.html</link>
		<comments>http://www.ourys.com/post/68.html#comments</comments>
		<pubDate>Mon, 29 Jun 2009 12:45:12 +0000</pubDate>
		<dc:creator>Hector</dc:creator>
				<category><![CDATA[HTML/CSS/XML/XSL]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[兼容]]></category>

		<guid isPermaLink="false">http://www.ourys.com/hector/ourys.com/?p=57</guid>
		<description><![CDATA[<p>这里讲了我在写css中常用的内容整体居中的三种css方法，每一种方法都兼容ie6，ie7，ie8，火狐，opera，chrome等各大浏览器。测试文件index.html的代码其中外部的style.css文件地址请自己更换&#60;html&#62;&#60;head&#62;&#60;link href=&#34;style.css&#34; rel=&#34;Stylesheet&#34; ty</p>
]]></description>
			<content:encoded><![CDATA[<p>这里讲了我在写css中常用的内容整体居中的三种css方法，每一种方法都<span class='wp_keywordlink_affiliate'><a href="http://www.ourys.com/tags/compatible" title="查看 兼容 中的全部文章" target="_blank">兼容</a></span>ie6，ie7，ie8，火狐，opera，chrome等各大浏览器。</p>
<p>测试文件index.html的代码其中外部的style.css文件地址请自己更换</p>
<p><span style="background-color: #99ccff">&lt;html&gt;<br />&lt;head&gt;&lt;link href=&quot;style.css&quot; rel=&quot;Stylesheet&quot; type=&quot;text/css&quot; /&gt;&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div id=&quot;wrap&quot;&gt;&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</span></p>
<p><strong>方法一(style.css)：</strong></p>
<p><span style="background-color: #99ccff">*{margin:0;padding:0;}&nbsp;&nbsp;&nbsp; /*顶部对齐*/<br />#wrap<br />{<br />&nbsp;position:relative;<br />&nbsp;width:988px;<br />&nbsp;margin-left:50%;<br />&nbsp;left:-494px;<br />&nbsp;height:1200px;<br />&nbsp;border:solid 1px red;<br />}</span></p>
<p>评论：此方法是先定好内容的宽度，然后向左距离整个浏览器的50%，再向左拉回内容宽度的一半</p>
<p><strong>方法二(style1.css)：</strong></p>
<p><span style="background-color: #99ccff"><font style="background-color: #ffffff">*{margin:0;padding:0;}<br />body{text-align:center;}<br />#wrap<br />{<br />&nbsp;position:relative;<br />&nbsp;margin:0 auto;<br />&nbsp;width:988px;<br />&nbsp;height:1200px;<br />&nbsp;text-align:left;<br />&nbsp;border:solid 1px red;<br />}</font></span></p>
<p>评论：此方法是先定好内容的宽度，然后body里面内容居中，然后容器里面内容靠左，注意&nbsp;margin:0 auto;是为了<span class='wp_keywordlink_affiliate'><a href="http://www.ourys.com/tags/compatible" title="查看 兼容 中的全部文章" target="_blank">兼容</a></span>其他浏览器</p>
<p><strong>方法三(style2.css)：</strong></p>
<p><span style="background-color: #99ccff"><font style="background-color: #ffffff">*{margin:0;padding:0;}<br />#wrap<br />{<br />&nbsp;position:relative;<br />&nbsp;width:988px;<br />&nbsp;&nbsp;&nbsp; margin-left:-494px;<br />&nbsp;left:50%;<br />&nbsp;height:100%;<br />&nbsp;border:solid 1px red;<br />}</font></span></p>
<p>评论：和方法一类似，可以对比方法一看</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ourys.com/post/68.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

