<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[无爱的天空 - DIV+CSS]]></title>
<link>http://www.51oyf.com/</link>
<description><![CDATA[千夫所指 问心无愧]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[9337719@qq.com(NetFox)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>无爱的天空</title>
	<url>http://www.51oyf.com/images/logos.gif</url>
	<link>http://www.51oyf.com/</link>
	<description>无爱的天空</description>
</image>

			<item>
			<link>http://www.51oyf.com/article/divcss/191.html</link>
			<title><![CDATA[解决Firefox(火狐)下display的不兼容问题]]></title>
			<author>9337719@qq.com(netfox)</author>
			<category><![CDATA[DIV+CSS]]></category>
			<pubDate>Fri,06 May 2016 17:27:01 +0800</pubDate>
			<guid>http://www.51oyf.com/default.asp?id=191</guid>
		<description><![CDATA[在脚本中更改某一个元素的display属性,在IE下这么写:frmName.test.style.display=&#34;none&#34;;是没有什么问题的,但是在火狐下就行不通了,因为Firefox不支持直接用HTML元素id做变量,正确的写法应该是这样的:<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(&#34;test&#34;).style.display=&#34;none&#34;;<br/><br/>还有一个问题,在IE下这么写是没有问题的:frmName.test.style.display=&#34;block&#34;;但是在Firefox下就会出现排版错误,一整行的内容会缩到一个 &lt;td&gt; 内.<br/><br/>正确兼容IE和Firefox的写法应该是这样的:<br/><br/>document.getElementById(&#34;test&#34;).style.display=&#34;&#34;;//显示<br/><br/>document.getElementById(&#34;test&#34;).style.display=&#34;none&#34;;//隐藏]]></description>
		</item>
		
			<item>
			<link>http://www.51oyf.com/article/divcss/180.html</link>
			<title><![CDATA[左右两列自适应高度及三列等高的方法]]></title>
			<author>9337719@qq.com(NetFox)</author>
			<category><![CDATA[DIV+CSS]]></category>
			<pubDate>Wed,03 Jul 2013 18:55:58 +0800</pubDate>
			<guid>http://www.51oyf.com/default.asp?id=180</guid>
		<description><![CDATA[我们在用DIV+CSS布局网页的时候，必然会遇到左右两列自适应高度的问题，就是左边列的背景会随着右边列内容的增加也相应的增加高度，下面就教大家DIV+CSS左右两列自适应高度的方法。<br/>第一种方法：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.51oyf.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp24183">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>DIV+CSS左右两列自适应高度的方法-HTMer</title>
<style type=&#34;text/css&#34;>
.main{500px;overflow:hidden;}
.left{width:100px;background-color:#0CC;margin-bottom:-9999px;padding-bottom:9999px;float:left;}
.right{width:400px;background-color:#F00;float:left;}
</style>
</head>
<body>
<div class=&#34;main&#34;>
    <div class=&#34;left&#34;>左侧内容1</div>
    <div class=&#34;right&#34;>右侧内容1<br />右侧内容2<br />右侧内容3</div>
</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp24183')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp24183')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp24183')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>说明：其实解决DIV+CSS左右两列高度自适应的方法就是要注意两点：一是在最外层加上overflow:hidden，然后在左边列加上margin-bottom:-9999px;padding-bottom:9999px;即可。<br/><br/>以上是左列自动适应右列 <br/>要使右列适应左列&nbsp;&nbsp;方法同上<br/><br/>第二种方法：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.51oyf.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp15897">

<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>两列高度自适应</title>
<style type=&#34;text/css&#34;>
<!--
*{margin:0;padding:0;}
#main{overflow:hidden;}
.sidebar{float:left;width:150px;background:#ff0000;}
.content{background:#333333;overflow:hidden;_float:left;/*兼容IE6*/}
.row{margin-bottom:-10000px;padding-bottom:10000px;/*内外补丁是关键*/}
-->
</style>
</head>
<body>

<div id=&#34;main&#34;>

<div class=&#34;sidebar row&#34;>
我在左边<br /> 
我在左边<br />
我在左边<br /> 我在左边<br />
我在左边<br /> 我在左边<br />
我在左边<br /> 


我在左边<br />
我在左边<br /> 

我在左边<br />
</div>

<div class=&#34;content row&#34;>
我在正文<br />
我在正文<br />
我在正文<br />
我在正文<br />
我在正文<br />
我在正文<br />我在正文<br />
我在正文<br />
我在正文<br />我在正文<br />
我在正文<br />
我在正文<br />我在正文<br />
我在正文<br />
我在正文<br />
我在正文<br />

<span style=&#34;float:right; font-size:0; position:relative; &#34;> </span> <!--为了万恶的ie6-->

</div>

</div>
</body>
</html>

</TEXTAREA><br/><INPUT onclick="runEx('temp15897')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp15897')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp15897')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>这种方法可以实现左右二列自动适应<br/><br/><br/>三列等高：<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.51oyf.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp93871">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<title>CSS等高布局</title>
<style type=&#34;text/css&#34;>
*{
 margin:0;
 padding:0;
}
#wrap{
 overflow:hidden;
 width:1000px;
 margin:0 auto;
}
#left,#center,#right{
 margin-bottom:-10000px;
 padding-bottom:10000px;
}
#left{
 float:left;
 width:250px;
 background:#00FFFF;
 }
#center{
 float:left;
 width:500px;
 background:#FF0000;
 }
#right{
	float:left;
	width:250px;
	background:#00FF00;
 }
</style>
</head>
<body>
<div id=&#34;wrap&#34;>
 <div id=&#34;left&#34;>
  <p>left</p>
  
 </div>
 <div id=&#34;center&#34;>
  <p>center</p>
  
 </div>
 <div id=&#34;right&#34;>
  <p>right</p>
  <p>right</p>
  <p>right</p>
 </div>
</div>
</body>
</html>

</TEXTAREA><br/><INPUT onclick="runEx('temp93871')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp93871')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp93871')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
</channel>
</rss>
