<?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; 弹出层</title>
	<atom:link href="http://blog.aijue.net/tag/%e5%bc%b9%e5%87%ba%e5%b1%82/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.aijue.net</link>
	<description>公元4世纪，楼兰国突然销声匿迹。</description>
	<lastBuildDate>Wed, 01 Sep 2010 10:34:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>点击弹出层效果</title>
		<link>http://blog.aijue.net/324/%e7%82%b9%e5%87%bb%e5%bc%b9%e5%87%ba%e5%b1%82%e6%95%88%e6%9e%9c/</link>
		<comments>http://blog.aijue.net/324/%e7%82%b9%e5%87%bb%e5%bc%b9%e5%87%ba%e5%b1%82%e6%95%88%e6%9e%9c/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 19:05:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Div+CSS]]></category>
		<category><![CDATA[弹出层]]></category>

		<guid isPermaLink="false">http://blog.aijue.net/?p=324</guid>
		<description><![CDATA[&#60;html&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /&#62; &#60;title&#62;弹出层效果&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; &#60;!-- html,body {height:100%; margin:0px; font-size:12px;} .mydiv { background-color: #FFCC66; border: 1px solid #f00; text-align: center; line-height: 40px; font-size: 12px; font-weight: bold; z-index:99; width: 300px; height: 120px; left:50%;/*FF IE7*/ top:50%;/*FF IE7*/ margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */ margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/ margin-top:0px; position:fixed!important;/*FF IE7*/ position:absolute;/*IE6*/ _top: e­xpression(eval(document.compatMode &#38;&#38; document.compatMode=='CSS1Compat') [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_ZXL3GF">
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;
&lt;title&gt;弹出层效果&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
html,body {height:100%; margin:0px; font-size:12px;}
.mydiv {
background-color: #FFCC66;
border: 1px solid #f00;
text-align: center;
line-height: 40px;
font-size: 12px;
font-weight: bold;
z-index:99;
width: 300px;
height: 120px;
left:50%;/*FF IE7*/
top:50%;/*FF IE7*/
margin-left:-150px!important;/*FF IE7 该值为本身宽的一半 */
margin-top:-60px!important;/*FF IE7 该值为本身高的一半*/
margin-top:0px;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top:       e­xpression(eval(document.compatMode &amp;&amp;
            document.compatMode=='CSS1Compat') ?
            documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
            document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
.bg {
background-color: #666;
width: 100%;
height: 100%;
left:0;
top:0;/*FF IE7*/
filter:alpha(opacity=50);/*IE*/
opacity:0.5;/*FF*/
z-index:1;
position:fixed!important;/*FF IE7*/
position:absolute;/*IE6*/
_top:       e­xpression(eval(document.compatMode &amp;&amp;
            document.compatMode=='CSS1Compat') ?
            documentElement.scrollTop + (document.documentElement.clientHeight-this.offsetHeight)/2 :/*IE6*/
            document.body.scrollTop + (document.body.clientHeight - this.clientHeight)/2);/*IE5 IE5.5*/
}
--&gt;
&lt;/style&gt;
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
function showDiv(){
document.getElementById('popDiv').style.display='block';
document.getElementById('bg').style.display='block';
}
function closeDiv(){
document.getElementById('popDiv').style.display='none';
document.getElementById('bg').style.display='none';
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;popDiv&quot; class=&quot;mydiv&quot; style=&quot;display:none;&quot;&gt;弹出窗口
&lt;a href=&quot;http://www.5jun.com&quot;&gt;www.5jun.com&lt;/a&gt;
&lt;a href=&quot;javascript:closeDiv()&quot;&gt;关闭窗口&lt;/a&gt;&lt;/div&gt;
&lt;div id=&quot;bg&quot; class=&quot;bg&quot; style=&quot;display:none;&quot;&gt;&lt;/div&gt;
&lt;div style=&quot;height:200px; line-height:200px; text-align:center; background:#FFFFCC;&quot;&gt;&lt;a href=&quot;javascript:showDiv()&quot;&gt;点我,弹出层&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="Run" class="runcode_button" onclick="runcode_open_new('runcode_ZXL3GF');"/> <input type="button" value="Copy" class="runcode_button" onclick="runcode_copy('runcode_ZXL3GF');"/> Tips:You can change the code before run.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.aijue.net/324/%e7%82%b9%e5%87%bb%e5%bc%b9%e5%87%ba%e5%b1%82%e6%95%88%e6%9e%9c/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
