<?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>幻想曲.Net &#187; css</title>
	<atom:link href="http://yibin.us/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://yibin.us</link>
	<description>面朝大海，春暖花开</description>
	<lastBuildDate>Fri, 17 Jun 2011 01:57:39 +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 hack (2)</title>
		<link>http://yibin.us/archives/5942</link>
		<comments>http://yibin.us/archives/5942#comments</comments>
		<pubDate>Wed, 30 Apr 2008 06:24:00 +0000</pubDate>
		<dc:creator>幻想曲</dc:creator>
				<category><![CDATA[没有分类]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://yibin.us/?p=5942</guid>
		<description><![CDATA[_property:value属性前加_线,该hack对IE有效，在FF下无效这段代码在IE下看,div的边框为蓝色,而在FireFox下无效 &#60;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&#62; &#60;html xmlns=”http://www.w3.org/1999/xhtml”&#62; &#60;head&#62; &#60;title&#62; new document &#60;/title&#62; &#60;meta name=”generator” content=”editplus” /&#62; &#60;meta name=”author” content=”" /&#62; &#60;meta name=”keywords” content=”" /&#62; &#60;meta name=”description” content=”" /&#62; &#60;style type=”text/css”&#62; div { _border:solid 1px blue; width:300px; height:300px; } &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;div&#62;yibin.us&#60;/div&#62; &#60;/body&#62; &#60;/html&#62; 运行代码 盒模型解决方法选择符 {width:IE5.x宽度; voice-family :”\”}\”"; voice-family:inherit; width:正确宽度;}IE5.5及以下版本不认,其它版本与FF都认如下，该段代码在FF与IE6/IE7能正确显示div宽度为200px [...]]]></description>
			<content:encoded><![CDATA[<p><b>_property:value</b><br />属性前加_线,该hack对IE有效，在FF下无效<br />这段代码在IE下看,div的边框为蓝色,而在FireFox下无效
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65"><br />
&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
  &lt;style type=”text/css”&gt;<br />
  div<br />
  {<br />
_border:solid 1px blue;<br />
width:300px;<br />
height:300px;<br />
  }<br />
  &lt;/style&gt;<br />
 &lt;/head&gt;</p>
<p> &lt;body&gt;<br />
  &lt;div&gt;yibin.us&lt;/div&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
<p><b>盒模型解决方法</b><br /><font color="red">选择符 {width:IE5.x宽度; voice-family :”\”}\”"; voice-family:inherit; width:正确宽度;}</font><br />IE5.5及以下版本不认,其它版本与FF都认<br />如下，该段代码在FF与IE6/IE7能正确显示div宽度为200px
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65">&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
  &lt;style type=”text/css”&gt;<br />
  div<br />
  {<br />
border:solid 1px blue;<br />
width:900px;<br />
voice-family :”\”}\”";<br />
voice-family:inherit;<br />
width:200px;</p>
<p>  }<br />
  &lt;/style&gt;<br />
 &lt;/head&gt;</p>
<p> &lt;body&gt;<br />
  &lt;div&gt;yibin.us&lt;/div&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
]]></content:encoded>
			<wfw:commentRss>http://yibin.us/archives/5942/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>CSS Hack(1)</title>
		<link>http://yibin.us/archives/5940</link>
		<comments>http://yibin.us/archives/5940#comments</comments>
		<pubDate>Wed, 30 Apr 2008 02:02:00 +0000</pubDate>
		<dc:creator>幻想曲</dc:creator>
				<category><![CDATA[没有分类]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://yibin.us/?p=5940</guid>
		<description><![CDATA[!important;严格来说，!important;应该不能算作是一种hack技术，被应用了!important;的属性将在IE中无效，对FF有效。如以下这段，在FF中div1的背景将是红色,而在IE中却是蓝色 &#60;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&#62; &#60;html xmlns=”http://www.w3.org/1999/xhtml”&#62; &#60;head&#62; &#60;title&#62; new document &#60;/title&#62; &#60;meta name=”generator” content=”editplus” /&#62; &#60;meta name=”author” content=”" /&#62; &#60;meta name=”keywords” content=”" /&#62; &#60;meta name=”description” content=”" /&#62; &#60;style type=”text/css”&#62; #div1 { background:red !important; background:blue; } &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;div id=”div1&#8243;&#62;div1&#60;/div&#62; &#60;/body&#62; &#60;/html&#62; 运行代码 * html 选择符 {…}IE6及以下版本识别，对FF无效 &#60;!DOCTYPE html PUBLIC [...]]]></description>
			<content:encoded><![CDATA[<p><b>!important;</b><br />严格来说，!important;应该不能算作是一种hack技术，被应用了!important;的属性将在IE中无效，对FF有效。<br />如以下这段，在FF中div1的背景将是红色,而在IE中却是蓝色
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65"><br />
&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
  &lt;style type=”text/css”&gt;<br />
   #div1<br />
   {<br />
     background:red !important;<br />
     background:blue;<br />
   }<br />
  &lt;/style&gt;<br />
 &lt;/head&gt;</p>
<p> &lt;body&gt;<br />
  &lt;div id=”div1&#8243;&gt;div1&lt;/div&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
<p><b>* html 选择符 {…}</b><br />IE6及以下版本识别，对FF无效
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65"><br />
&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
  &lt;style type=”text/css”&gt;</p>
<p>   #more<br />
   {<br />
   border:solid 1px blue;<br />
   }<br />
  * html #more<br />
  {<br />
    border:solid 1px red;<br />
  }<br />
  &lt;/style&gt;<br />
 &lt;/head&gt;<br />
 &lt;body&gt;<br />
  &lt;div id=”more”&gt;asdf&lt;/div&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
<p><b>select { 属性 /*屏蔽IE6*/:值;}</b>,仅IE6不识别，屏蔽IE6<br />主要是通过css的注释/*&#8230;..*/分开一个属性值与值，来屏蔽IE6</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-华丽的分隔符&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />现在我对前端充满好奇与兴趣，打算转到前端了哈。</p>
]]></content:encoded>
			<wfw:commentRss>http://yibin.us/archives/5940/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>position:fixed?</title>
		<link>http://yibin.us/archives/5939</link>
		<comments>http://yibin.us/archives/5939#comments</comments>
		<pubDate>Tue, 29 Apr 2008 13:01:00 +0000</pubDate>
		<dc:creator>幻想曲</dc:creator>
				<category><![CDATA[没有分类]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://yibin.us/?p=5939</guid>
		<description><![CDATA[position:fixed在ie6及以下版本下不大好用firefox运行: &#60;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&#62; &#60;html xmlns=”http://www.w3.org/1999/xhtml”&#62; &#60;head&#62; &#60;title&#62; new document &#60;/title&#62; &#60;meta name=”generator” content=”editplus” /&#62; &#60;meta name=”author” content=”" /&#62; &#60;meta name=”keywords” content=”" /&#62; &#60;meta name=”description” content=”" /&#62; &#60;style type=”text/css”&#62; p { height:100px; } &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;p&#62;&#60;/p&#62; &#60;div [...]]]></description>
			<content:encoded><![CDATA[<p>position:fixed在ie6及以下版本下不大好用<br />firefox运行:
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65"><br />
&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
  &lt;style type=”text/css”&gt;<br />
  p<br />
  {<br />
  height:100px;<br />
  }<br />
  &lt;/style&gt;<br />
 &lt;/head&gt;</p>
<p> &lt;body&gt;<br />
 &lt;p&gt;&lt;/p&gt;<br />
  &lt;p&gt;&lt;/p&gt;<br />
   &lt;p&gt;&lt;/p&gt;<br />
    &lt;p&gt;&lt;/p&gt;<br />
	 &lt;p&gt;&lt;/p&gt;<br />
	  &lt;p&gt;&lt;/p&gt;<br />
	   &lt;p&gt;&lt;/p&gt;<br />
	    &lt;p&gt;&lt;/p&gt;<br />
		 &lt;p&gt;&lt;/p&gt;<br />
		  &lt;p&gt;&lt;/p&gt;<br />
		   &lt;p&gt;&lt;/p&gt;<br />
		    &lt;p&gt;&lt;/p&gt;<br />
			 &lt;p&gt;&lt;/p&gt;<br />
  &lt;div style=”position:fixed;right:3px;bottom:3px;”&gt;&lt;img src=”http://bbs.blueidea.com/images/default/logo.gif” /&gt;&lt;/div&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
<p>于是用js来解决
<div class="codediv"><textarea name="codes" class="runcode" rows="12" cols="65"><br />
&lt;!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;<br />
&lt;html xmlns=”http://www.w3.org/1999/xhtml”&gt;<br />
 &lt;head&gt;<br />
  &lt;title&gt; new document &lt;/title&gt;<br />
  &lt;meta name=”generator” content=”editplus” /&gt;<br />
  &lt;meta name=”author” content=”" /&gt;<br />
  &lt;meta name=”keywords” content=”" /&gt;<br />
  &lt;meta name=”description” content=”" /&gt;<br />
 &lt;/head&gt;</p>
<p> &lt;body&gt;<br />
  &lt;div id=”test” style=”position:absolute;z-index:99;width:200px;text-align:right;”&gt;<br />
&lt;img src=”http://bbs.blueidea.com/images/default/logo.gif” /&gt;<br />
&lt;/div&gt;</p>
<p>&lt;script type=”text/javascript”&gt;<br />
var img = document.getElementById(&#8216;test&#8217;);<br />
function test(){<br />
	img.style.top = (document.documentElement.clientHeight &#8211; img.offsetHeight + document.documentElement.scrollTop) + &#8216;px&#8217;;<br />
	img.style.left = document.documentElement.clientWidth &#8211; img.offsetWidth + document.documentElement.scrollLeft + &#8216;px&#8217;;<br />
}<br />
setInterval(test, 250);<br />
&lt;/script&gt;<br />
 &lt;/body&gt;<br />
&lt;/html&gt;<br />
</textarea><br/><a class="run" href="#1" onclick="runCode(this);">运行代码</a></div>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://yibin.us/archives/5939/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

