<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[关于div的隐藏]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Wed, 27 Sep 2006 02:53:45 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	div的visibility可以控制div的显示和隐藏，但是隐藏后页面显示空白<br/><br/>style=&quot;visibility: none;&quot;<br/><br/>document.getElementById(&quot;typediv1&quot;).style.visibility=&quot;hidden&quot;;//隐藏<br/><br/>document.getElementById(&quot;typediv1&quot;).style.visibility=&quot;visible&quot;;//显示<br/><br/><br/>通过设置display属性可以使div隐藏后释放占用的页面空间，如下<br/><br/>style=&quot;display: none;&quot;<br/><br/>document.getElementById(&quot;typediv1&quot;).style.display=&quot;none&quot;;//隐藏<br/><br/>document.getElementById(&quot;typediv1&quot;).style.display=&quot;&quot;;//显示<br/><br/>如果用div.style.display=&quot;none&quot;隐藏会引起，div里面的东西休眠，里面的事件就不响应了。<br/><br/>最好将div里面的对象的width或height设成0.比如：div里面有一个player的iframe.<br/><br/>document.frames[&#039;player&#039;].frameElement.height=0;<br/><br/><br/>Tags - <a href="http://www.dzhope.com/tags/div/" rel="tag">div</a>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 关于div的隐藏]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>