<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[PaulLeder--程序部落 - CSS]]></title>
<link>http://bokee.shinylife.net/blog/</link>
<description><![CDATA[Be Your Personal Best]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[paulleder@msn.com(PaulLeder)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>PaulLeder--程序部落</title>
	<url>http://bokee.shinylife.net/blog/images/logos.gif</url>
	<link>http://bokee.shinylife.net/blog/</link>
	<description>PaulLeder--程序部落</description>
</image>

			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=920</link>
			<title><![CDATA[CSS实现DIV内容垂直及水平居中]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Thu,02 Jul 2009 23:22:17 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=920</guid>
		<description><![CDATA[<div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&lt;!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;&gt;<br/>&lt;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;&gt;<br/>&lt;head&gt;<br/>&lt;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&gt;<br/>&lt;title&gt;CSS实现DIV内容垂直及水平居中&lt;/title&gt;<br/>&lt;style type=&#34;text/css&#34;&gt; <br/>#container {width:750px; height:600px; background:#f8f8f8; border:5px solid #777; text-align:center; display:table-cell; vertical-align:middle;}<br/>&lt;/style&gt; <br/>&lt;!--[if IE]&gt; <br/>&lt;style type=&#34;text/css&#34;&gt;<br/>#fixie{width:0;height:100%;display:inline-block;vertical-align:middle;}<br/>#fixiecontainer {text-align:center; width:100%; display:inline-block; vertical-align:middle;}<br/>&lt;/style&gt; <br/>&lt;![endif]--&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>xhtml代码：<br/>&lt;div id=&#34;container&#34;&gt; <br/>&lt;span id=&#34;fixie&#34;&gt;&lt;/span&gt;&nbsp;&nbsp;<br/>&lt;span id=&#34;fixiecontainer&#34;&gt;CSS实现DIV内容垂直及水平居中CSS实现DIV内容垂直及水平居中CSS实现DIV内容垂直及水平居中&lt;br /&gt;&lt;img src=&#34;<a href="http://i3.6.cn/cvbnm/fd/79/ff/e64ebebb5d5c547073ff673e060a202f.jpg" target="_blank" rel="external">http://i3.6.cn/cvbnm/fd/79/ff/e64ebebb5d5c547073ff673e060a202f.jpg</a>&#34; alt=&#34;&#34; /&gt;&lt;/span&gt; <br/>&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;</div></div><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp59714"><!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实现DIV内容垂直及水平居中</title>
<style type=&#34;text/css&#34;> 
#container {width:750px; height:600px; background:#f8f8f8; border:5px solid #777; text-align:center; display:table-cell; vertical-align:middle;}
</style> 
<!--[if IE]> 
<style type=&#34;text/css&#34;>
#fixie{width:0;height:100%;display:inline-block;vertical-align:middle;}
#fixiecontainer {text-align:center; width:100%; display:inline-block; vertical-align:middle;}
</style> 
<![endif]-->
</head>
<body>
xhtml代码：
<div id=&#34;container&#34;> 
<span id=&#34;fixie&#34;></span>  
<span id=&#34;fixiecontainer&#34;>CSS实现DIV内容垂直及水平居中CSS实现DIV内容垂直及水平居中CSS实现DIV内容垂直及水平居中<br /><img src=&#34;<a href="http://i3.6.cn/cvbnm/fd/79/ff/e64ebebb5d5c547073ff673e060a202f.jpg" target="_blank" rel="external">http://i3.6.cn/cvbnm/fd/79/ff/e64ebebb5d5c547073ff673e060a202f.jpg</a>&#34; alt=&#34;&#34; /></span> 
</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp59714')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp59714')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp59714')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/><strong>纯css完美地解决图片在div内垂直水平居中 </strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&lt;html&gt;<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp36879"><head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title></title>
<style type=&#34;text/css&#34;>
.img_v {
display:table-cell !important;
display:block;
position:static !important;
position:relative;
overflow:hidden;
width:400px;
height:400px;
border:1px solid #000;
vertical-align:middle;
text-align:center;
}
.img_v p {
display:table-cell !important;
display:block;
margin:0;
position:static !important;
position:absolute;
top:50%;
left:50%;
width:400px;
margin-left:auto;
margin-right:auto;
}
.img_v img {
position:static !important;
position:relative;
top:auto !important;
top:-50%;
left:auto !important;
left:-50%;
}
</style>
</head>
<body>
<div class=&#34;img_v&#34;>
  <p><img src=&#34;<a href="http://code.dlstu.cn/skins/simple_yellow/title.jpg" target="_blank" rel="external">http://code.dlstu.cn/skins/simple_yellow/title.jpg</a>&#34;></p>
</div>
</body>
</html></div></div>
<html>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title></title>
<style type=&#34;text/css&#34;>
.img_v {
display:table-cell !important;
display:block;
position:static !important;
position:relative;
overflow:hidden;
width:400px;
height:400px;
border:1px solid #000;
vertical-align:middle;
text-align:center;
}
.img_v p {
display:table-cell !important;
display:block;
margin:0;
position:static !important;
position:absolute;
top:50%;
left:50%;
width:400px;
margin-left:auto;
margin-right:auto;
}
.img_v img {
position:static !important;
position:relative;
top:auto !important;
top:-50%;
left:auto !important;
left:-50%;
}
</style>
</head>
<body>
<div class=&#34;img_v&#34;>
  <p><img src=&#34;<a href="http://code.dlstu.cn/skins/simple_yellow/title.jpg" target="_blank" rel="external">http://code.dlstu.cn/skins/simple_yellow/title.jpg</a>&#34;></p>
</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp36879')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp36879')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp36879')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=914</link>
			<title><![CDATA[Visual CSS下载]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,01 Jul 2009 14:20:05 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=914</guid>
		<description><![CDATA[Visual CSS下载还算不错了，偶个人看了一下，除了W3C验证提供了快捷方式外基本上和VS里面的CSS编辑器差不多，也许适合一些用户使用。就做了一个记录<br/>下载地址：<a href="http://css.webchat.com.cn/VisualCSS/download.aspx" target="_blank" rel="external">http://css.webchat.com.cn/VisualCSS/download.aspx</a>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=912</link>
			<title><![CDATA[tab样式组合排版]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,24 Jun 2009 16:37:17 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=912</guid>
		<description><![CDATA[最近公司商城后台排版的，是我“设计”加排版。参考了163 blog和alibaba 支付宝.<br/><strong>效果预览：</strong><br/><img src="http://bokee.shinylife.net/blog/attachments/month_0906/h2009624164229.gif" border="0" alt=""/><br/><br/><strong>代码如下：</strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&lt;!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;&gt;<br/>&lt;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;&gt;<br/>&lt;head&gt;<br/>&#160;&#160;&#160;&#160;&lt;title&gt;无标题页&lt;/title&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;style type=&#34;text/css&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#160;&#160;&#160;&#160;body {text-align:left;font-family:&#34;宋体&#34;,arial;margin:0;padding:0;background:#FFF;color:#000;line-height:100%;text-align:center;font-size:14px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;div,form,img,ul,ol,li,dl,dt,dd {margin:0;padding:0;border:0}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#contenter{width:1000px;overflow:hidden;margin:0px auto;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#bodyer{text-align:left;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/*global*/<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.clear{display:block;clear:both;height:10px;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;/*comment part*/<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.detail_tab_part{background-color:white;margin-top:10px;height:25px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.detail_tab_part li{border:1px #B8B8B8 solid;border-width:1px 1px 0px;float:left;height:25px;line-height:24px;width:100px;margin-right:3px;cursor:pointer;font-size:12px;position:relative;_top:1px;height:25px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.detail_tab_part li.curr{background-color:#F7F7F7;cursor:pointer;font-weight:800;position:relative;_top:1px;font-size:14px;margin-bottom:1px;height:25px;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.mainbody{overflow:hidden;height:1%;background:url(<a href="http://www.ppneed.com/shopping/user/images/main_bg.gif" target="_blank" rel="external">http://www.ppneed.com/shopping/user/images/main_bg.gif</a>);}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.main_left{float:right;width:222px;overflow:hidden;height:1%;text-align:left;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.main_right{float:left;width:775px;overflow:hidden;height:1%;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.userInfo{border-bottom:1px #999 dashed;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.userInfo strong{display:block;text-align:left;padding-left:10px;line-height:160%;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.userInfo strong i{font-style:normal;font-weight:normal;font-size:12px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.userInfo strong img{float:left;margin-right:7px;margin-top:8px;border:1px #ccc solid;padding:1px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.userInfo strong.last{margin-bottom:10px;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.nav_hd{height:30px;line-height:30px;display:block;padding-left:40px;border-bottom:1px #BFBFBF solid;color:#A10C04;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav{list-style-type:none;margin-top:10px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li{height:30px;line-height:30px;display:block;padding-left:50px;background:url(/shopping/images/reddot.jpg) 40px 12px no-repeat;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li a{color:Black;text-decoration:none;display:block;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li a:focus{outline:none;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li.liline{font-size:1px;height:1px;line-height:1px;border-bottom:1px solid #ccc;margin:5px 0px 5px 10px;width:140px;background:none;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li.current{border-color:#B8B8B8 #B8B8B8 #B8B8B8 #FFFFFF;border-width:1px;border-style:solid;background-color:White;width:150px;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.user_nav li.current a{font-weight:700;}<br/><br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;.comment{border:#B8B8B8 1px solid;line-height:200%;text-align:left;background-color:#F7F7F7;}<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/style&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div id=&#34;contenter&#34;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#34;mainbody&#34;&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#34;main_left&#34;&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#34;userInfo&#34;&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;img src=&#34;<a href="http://www.ppneed.com/user/20/default/thumb_633803094523281250.jpg" target="_blank" rel="external">http://www.ppneed.com/user/20/default/thumb_633803094523281250.jpg</a>&#34; width=&#34;60&#34; height=&#34;60&#34; border=&#34;0&#34;/&gt;paulleder!&lt;/strong&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong&gt;积分:&lt;i&gt;1024&lt;/i&gt;&lt;/strong&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;strong class=&#34;last&#34;&gt;上次登录:&lt;i&gt;06-22 17:55&lt;/i&gt;&lt;/strong&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#34;nav_hd&#34;&gt;&lt;strong&gt;管理导航&lt;/strong&gt;&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&#34;user_nav&#34;&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;current&#34;&gt;&lt;a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;&gt;我的订单&lt;/a&gt;&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;&lt;a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;&gt;我的地址薄&lt;/a&gt;&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;&lt;a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;&gt;我的评论&lt;/a&gt;&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#34;main_right&#34;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&#34;detail_tab_part&#34;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;curr&#34;&gt;所有订单&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;待支付订单&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;等待发货订单&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;确认收货订单&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li class=&#34;&#34;&gt;交易完成订单&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;div class=&#34;comment&#34;&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这里是主体部分<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;</div></div><br/><br/><strong>在线浏览</strong><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp97750"><!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>
	<title>无标题页</title>
    <style type=&#34;text/css&#34;>
    	body {text-align:left;font-family:&#34;宋体&#34;,arial;margin:0;padding:0;background:#FFF;color:#000;line-height:100%;text-align:center;font-size:14px;}
		div,form,img,ul,ol,li,dl,dt,dd {margin:0;padding:0;border:0}
		#contenter{width:1000px;overflow:hidden;margin:0px auto;}
		#bodyer{text-align:left;}

		/*global*/
		.clear{display:block;clear:both;height:10px;}

		/*comment part*/
		.detail_tab_part{background-color:white;margin-top:10px;height:25px;}
		.detail_tab_part li{border:1px #B8B8B8 solid;border-width:1px 1px 0px;float:left;height:25px;line-height:24px;width:100px;margin-right:3px;cursor:pointer;font-size:12px;position:relative;_top:1px;height:25px;}
		.detail_tab_part li.curr{background-color:#F7F7F7;cursor:pointer;font-weight:800;position:relative;_top:1px;font-size:14px;margin-bottom:1px;height:25px;}

		.mainbody{overflow:hidden;height:1%;background:url(<a href="http://www.ppneed.com/shopping/user/images/main_bg.gif" target="_blank" rel="external">http://www.ppneed.com/shopping/user/images/main_bg.gif</a>);}
		.main_left{float:right;width:222px;overflow:hidden;height:1%;text-align:left;}
		.main_right{float:left;width:775px;overflow:hidden;height:1%;}

		.userInfo{border-bottom:1px #999 dashed;}
		.userInfo strong{display:block;text-align:left;padding-left:10px;line-height:160%;}
		.userInfo strong i{font-style:normal;font-weight:normal;font-size:12px;}
		.userInfo strong img{float:left;margin-right:7px;margin-top:8px;border:1px #ccc solid;padding:1px;}
		.userInfo strong.last{margin-bottom:10px;}

		.nav_hd{height:30px;line-height:30px;display:block;padding-left:40px;border-bottom:1px #BFBFBF solid;color:#A10C04;}
		.user_nav{list-style-type:none;margin-top:10px;}
		.user_nav li{height:30px;line-height:30px;display:block;padding-left:50px;background:url(/shopping/images/reddot.jpg) 40px 12px no-repeat;}
		.user_nav li a{color:Black;text-decoration:none;display:block;}
		.user_nav li a:focus{outline:none;}
		.user_nav li.liline{font-size:1px;height:1px;line-height:1px;border-bottom:1px solid #ccc;margin:5px 0px 5px 10px;width:140px;background:none;}
		.user_nav li.current{border-color:#B8B8B8 #B8B8B8 #B8B8B8 #FFFFFF;border-width:1px;border-style:solid;background-color:White;width:150px;}
		.user_nav li.current a{font-weight:700;}

		.comment{border:#B8B8B8 1px solid;line-height:200%;text-align:left;background-color:#F7F7F7;}
    </style>
</head>
<body>
    <div id=&#34;contenter&#34;>
        <div class=&#34;mainbody&#34;>
	        <div class=&#34;main_left&#34;>
	            <div class=&#34;userInfo&#34;>
	              <strong>
	                <img src=&#34;<a href="http://www.ppneed.com/user/20/default/thumb_633803094523281250.jpg" target="_blank" rel="external">http://www.ppneed.com/user/20/default/thumb_633803094523281250.jpg</a>&#34; width=&#34;60&#34; height=&#34;60&#34; border=&#34;0&#34;/>paulleder!</strong>
	                <strong>积分:<i>1024</i></strong>
	                <strong class=&#34;last&#34;>上次登录:<i>06-22 17:55</i></strong>
	            </div>
	            <div class=&#34;nav_hd&#34;><strong>管理导航</strong></div>
	            <ul class=&#34;user_nav&#34;>
	                <li class=&#34;current&#34;><a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;>我的订单</a></li>
	                <li class=&#34;&#34;><a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;>我的地址薄</a></li>
	                <li class=&#34;&#34;><a href=&#34;javascript:void(0)&#34; hidefocus=&#34;true&#34;>我的评论</a></li>
	            </ul>
	        </div>
	        <div class=&#34;main_right&#34;>
			    <ul class=&#34;detail_tab_part&#34;>
			        <li class=&#34;curr&#34;>所有订单</li>
			        <li class=&#34;&#34;>待支付订单</li>
			        <li class=&#34;&#34;>等待发货订单</li>
			        <li class=&#34;&#34;>确认收货订单</li>
			        <li class=&#34;&#34;>交易完成订单</li>
			    </ul>
				<div class=&#34;comment&#34;>
	                 这里是主体部分
	           </div>
	    </div>
	</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp97750')"  type="button" class="userbutton" value="运行此代码"/> <INPUT onclick="doCopy('temp97750')"  type="button" class="userbutton" value="复制此代码"/> <INPUT onclick="saveCode('temp97750')" type="button" class="userbutton" value="保存此代码"><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/><strong>包含的图片</strong><a target="_blank" href="http://shinylife.net/blog/attachments/month_0906/w2009624163523.gif" rel="external">/attachments/month_0906/w2009624163523.gif</a><br/><br/><strong>完整DEMO包：</strong><br/><img src="http://bokee.shinylife.net/blog/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://bokee.shinylife.net/blog/attachments/month_0906/72009624163639.rar" target="_blank">点击下载此文件</a><br/><br/><br/><span style="font-size:14pt;line-height:100%;"><strong>对横向TAB部分剖析</strong></span><br/><strong>HTML代码：</strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&lt;!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;&gt;<br/>&lt;html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;&gt;<br/>&lt;head&gt;<br/>&#160;&#160;&#160;&#160;&lt;title&gt;demo&lt;/title&gt;<br/>&#160;&#160;&#160;&#160;&lt;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&gt;<br/>&#160;&#160;&#160;&#160;&lt;meta name=&#34;keywords&#34; content=&#34;&#34; /&gt;<br/>&#160;&#160;&#160;&#160;&lt;meta name=&#34;description&#34; content=&#34;&#34; /&gt;<br/> &#160;&#160;&#160;&#160;&lt;link rel=&#34;stylesheet&#34; type=&#34;text/css&#34; href=&#34;css/demo1.css&#34; /&gt;<br/>&lt;/head&gt;<br/>&lt;body&gt;<br/>&#160;&#160;&#160;&#160;&lt;ul class=&#34;tab&#34;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;li class=&#34;current&#34;&gt;新帖&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;li&gt;周热门帖&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;li&gt;热门帖&lt;/li&gt;<br/>&#160;&#160;&#160;&#160;&lt;/ul&gt;<br/>&#160;&#160;&#160;&#160;&lt;div class=&#34;tabContent&#34;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;内容部分<br/>&#160;&#160;&#160;&#160;&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;</div></div><br/><strong>CSS代码：</strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">body{font-size:12px;}<br/>ul,li{margin:0;padding:0;border:0}<br/><br/>.tab{list-style-type:none;margin-left:20px;margin-top:10px;height:25px;}<br/>.tab li{float:left;width:80px;height:24px;margin-right:1px;background-color:#A4A4A4;border:1px #C4C4C4 solid;border-bottom-width:0px;line-height:220%;text-align:center;position:relative;top:1px;cursor:pointer;color:white;}<br/>.tab li.current{background-color:white;color:black;font-weight:bold;}<br/><br/>.tabContent{border-top:1px #C4C4C4 solid;}</div></div><br/><strong>解析：</strong><br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">1、HTML代码结构就不解析了，就两部分，一部分是tab部分用ul/li完成，另一部分是tab内容，用div完成，这里需给div加一个border-top样式，以和tab的边框结合。<br/>2、样式部分：<br/>a）、ul,li{margin:0;padding:0;border:0} 是为了做浏览器兼容处理<br/>b）、.tab{list-style-type:none;margin-left:20px;margin-top:10px;height:25px;}这里是删除ul的默认list-style-type样式，设置边距，这里需要设置height属性，注意：这里不能设置overflow:hidden这样的样式。否则在current样式下FF下仍然会出现tab底线。<br/>c）、.tab li{float:left;width:80px;height:24px;margin-right:1px;background-color:#A4A4A4;border:1px #C4C4C4 solid;border-bottom-width:0px;line-height:220%;text-align:center;position:relative;top:1px;cursor:pointer;color:white;}，这里主要的几个属性是height:需要比ul上定义的height小1px。position:relative;top:1px;是为了兼容IE6所做的处理。<br/></div></div><br/>全部完成。]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=908</link>
			<title><![CDATA[如何去掉点击链接时周围的虚线框outline属性 ]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,17 Jun 2009 18:06:03 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=908</guid>
		<description><![CDATA[<p>以下是解决方案：</p>
<p><strong>方法一：</strong><br />
在IE下是使用html属性：hideFoucs，在HTML标签中加上hidefocus=&rdquo;true&rdquo; 属性即可，但这个属性是IE私有的，Firefox是不认的。</p>
<p><span style="color: #0000ff">&lt;</span><span style="color: #800000">a&nbsp;</span><span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;#&quot;</span><span style="color: #ff0000">&nbsp;hidefocus</span><span style="color: #0000ff">=&quot;true&quot;</span><span style="color: #ff0000">&nbsp;title</span><span style="color: #0000ff">=&quot;加了hidefocus&quot;</span><span style="color: #ff0000">&nbsp;</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">欢迎来到博客园（加了hidefocus属性）</span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">a</span><span style="color: #0000ff">&gt;</span><br />
Firefox的处理方法比较符合标准，只需要在样式里设置a:focus{outline:none}皆可：</p>
<div class="cnblogs_code"><!--<br  />
<br  />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br  />
http://www.CodeHighlighter.com/<br  />
<br  />
--><span style="color: #800000">.xzw_test&nbsp;a.setFocus:focus</span><span style="color: #000000">{</span><span style="color: #ff0000">outline</span><span style="color: #000000">:</span><span style="color: #0000ff">none</span><span style="color: #000000">}</span><span style="color: #800000"><br />
</span></div>
<p><strong>方法二：</strong></p>
<p>通过javascript方法让其点击后失去焦点从而达到没有虚线框，也不失为一种曲线救国的方案：</p>
<div class="cnblogs_code"><!--<br  />
<br  />
Code highlighting produced by Actipro CodeHighlighter (freeware)<br  />
http://www.CodeHighlighter.com/<br  />
<br  />
--><span style="color: #008000">//</span><span style="color: #008000">通过判断可以指定某个必要的链接失去焦点</span><span style="color: #008000"><br />
</span><span style="color: #0000ff">if</span><span style="color: #000000">(j(</span><span style="color: #0000ff">this</span><span style="color: #000000">).attr(</span><span style="color: #000000">&quot;</span><span style="color: #000000">id</span><span style="color: #000000">&quot;</span><span style="color: #000000">)</span><span style="color: #000000">==</span><span style="color: #000000">&quot;</span><span style="color: #000000">jsControl</span><span style="color: #000000">&quot;</span><span style="color: #000000">)&nbsp;</span><span style="color: #000000">&nbsp;&nbsp;j(</span><span style="color: #0000ff">this</span><span style="color: #000000">).blur();</span></div>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=886</link>
			<title><![CDATA[可以导入font-face?]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,07 Apr 2009 16:18:40 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=886</guid>
		<description><![CDATA[<div id="section_1">
<h3 class="editable">Summary</h3>
<p><strong>@font-face</strong> provides an @rule to specify a web font that needs to be downloaded to render the web page as expected by the page author.</p>
</div>
<div id="section_2">
<h3 class="editable">Syntax</h3>
<pre>
@font-face {
  font-family: &lt;a-remote-font-name&gt;;
  src: &lt;uri&gt;;
}
</pre>
</div>
<div id="section_3">
<h3 class="editable">Values</h3>
<dl><dt>&lt;a-remote-font-name&gt;&nbsp; </dt><dd>specify a font name that will be used as font face value for font properties. </dd><dt>&lt;uri&gt;&nbsp; </dt><dd>URL for the remote font file location. </dd></dl></div>
<div id="section_4">
<h3 class="editable">Notes</h3>
<p>Fonts use <a class="internal" href="https://developer.mozilla.org/En/HTTP_access_control" rel="internal">HTTP&nbsp;access controls</a> to determine whether or not they may be loaded from other hosts.</p>
<p>Firefox supports TrueType and OpenType fonts.</p>
<div class="note"><strong>Note:</strong> Because there are no defined MIME types for TrueType and OpenType fonts, the MIME type of the file specified is not considered.</div>
<p>When rendering a page using downloaded fonts, Firefox first renders using available fonts, then updates the display as downloadable fonts are retrieved.&nbsp; This allows the content to render quickly and refresh to match the intended look over time.</p>
</div>
<div id="section_5">
<h3 class="editable">Examples</h3>
<p><a class="iconitext-16 ext-html internal" href="https://developer.mozilla.org/@api/deki/files/2935/=webfont-sample.html" rel="internal">View live sample</a></p>
<pre>
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Web Font Sample&lt;/title&gt;
  &lt;style type=&quot;text/css&quot; media=&quot;screen, print&quot;&gt;
    @font-face {
      font-family: &quot;Bitstream Vera Serif Bold&quot;;
      src: url(&quot;http://developer.mozilla.org/@api/deki/files/2934/=VeraSeBd.ttf&quot;);
    }
    
    body { font-family: &quot;Bitstream Vera Serif Bold&quot;, serif }
  &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
  This is Bitstream Vera Serif Bold.
&lt;/body&gt;
&lt;/html&gt;
</pre>
</div>
<div id="section_6">
<h3 class="editable">Specifications</h3>
<ul>
    <li><a class="external" title="http://www.w3.org/TR/CSS2/fonts.html#font-descriptions" href="http://www.w3.org/TR/CSS2/fonts.html#font-descriptions" target="_blank" rel="external nofollow">CSS 2 fonts</a>&nbsp;</li>
    <li><a class="external" title="http://www.w3.org/TR/css3-webfonts/#font-descriptions" href="http://www.w3.org/TR/css3-webfonts/#font-descriptions" target="_blank" rel="external nofollow">CSS 3 webfonts</a></li>
</ul>
</div>
<div id="section_7">
<h3 class="editable">Browser compatibility</h3>
<table class="standard-table">
    <tbody>
        <tr>
            <th>Browser</th>
            <th>Lowest Version</th>
        </tr>
        <tr>
            <td>Internet Explorer</td>
            <td>?</td>
        </tr>
        <tr>
            <td>Firefox</td>
            <td>3.5</td>
        </tr>
        <tr>
            <td>Opera</td>
            <td>10 alpha</td>
        </tr>
        <tr>
            <td>Safari</td>
            <td>3</td>
        </tr>
    </tbody>
</table>
</div>
<div id="section_8">
<h3 class="editable">See also</h3>
<p><span class="lang lang-en"><span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font" rel="internal">font</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-family" rel="internal">font-family</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-size" rel="internal">font-size</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-size-adjust" rel="internal">font-size-adjust</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-stretch" rel="internal">font-stretch</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-style" rel="internal">font-style</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-variant" rel="internal">font-variant</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/font-weight" rel="internal">font-weight</a></code> </span>, <span class="lang lang-en"><code><a href="https://developer.mozilla.org/en/CSS/@font-face" rel="internal">@font-face</a></code> </span></span></p>
<p>&nbsp;</p>
</div>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=869</link>
			<title><![CDATA[超链接样式的正确顺序（link-visited-hover-active）]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Fri,20 Feb 2009 15:51:14 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=869</guid>
		<description><![CDATA[超链接A的4个CSS属性是有顺序的。<br/>错误的顺序会导致一些问题，例如：超链接访问过后 hover 样式就不出现。<br/><br/><strong>正确的顺序应该为，link-visited-hover-active。</strong><br/><br/>a:link {<br/>color: #676777;<br/>text-decoration: none;<br/> }<br/><br/>a:visited {<br/>color: #676777;<br/>text-decoration: none;<br/> }<br/><br/>a:hover {<br/>color: #90909F;<br/>text-decoration: underline;<br/> }<br/><br/>a:active {<br/>color: #676777;<br/>text-decoration: none;<br/> }<br/><br/><strong>温故而知新：</strong><br/><br/>a:link 设置 a 对象在未被访问前的样式。 a:visited 设置 a 对象在其链接地址已被访问过时的样式。 a:hover 设置 a 对象在其鼠标悬停时的样式。 a:acitve 设置 a 对象在被用户激活(在鼠标点击与释放之间发生的事件)时的样<br/><br/><strong>一个便于记忆的LOVE原则（爱恨原则）</strong><br/><br/>LoVe/HAte<br/><br/>即四种伪类的首字母:LVHA<br/>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=847</link>
			<title><![CDATA[IE6 FIxed]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Tue,04 Nov 2008 21:11:04 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=847</guid>
		<description><![CDATA[<img src="http://bokee.shinylife.net/blog/images/download.gif" alt="下载文件" style="margin:0px 2px -4px 0px"/> <a href="http://bokee.shinylife.net/blog/attachments/month_0811/v200811421941.rar" target="_blank">点击下载此文件</a><br/>这个German的作者真的很有意思，也很细心，我真的没能跟他比了～佩服佩服～！]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=843</link>
			<title><![CDATA[rel--在群里看到的就转载一下]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Thu,23 Oct 2008 17:06:38 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=843</guid>
		<description><![CDATA[rel 属性 -- rel属性,描述了当前页面与href所指定文档的关系.<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;* rel属性通常出现在a,link标签中<br/>&nbsp;&nbsp;&nbsp;&nbsp;* 属性值<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o alt&#101;rnate -- 定义交替出现的链接<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o appendix -- 定义文档的附加信息<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o bookmark -- 书签<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o chapter -- 当前文档的章节<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o contents<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o copyright -- 当前文档的版权<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o glossary -- 词汇<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o help -- 链接帮助信息<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o index -- 当前文档的索引<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o next -- 记录文档的下一页.(浏览器可以提前加载此页)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o nofollow -- 不被用于计算PageRank<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o prev -- 记录文档的上一页.(定义浏览器的后退键)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o section -- 作为文档的一部分<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o start -- 通知搜索引擎,文档的开始<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o stylesheet -- 定义一个外部加载的样式表<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;o subsection -- 作为文档的一小部分<br/>&nbsp;&nbsp;&nbsp;&nbsp;* rel是relationship的英文缩写.]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=814</link>
			<title><![CDATA[父层自适应子层高度]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Thu,24 Jul 2008 19:04:59 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=814</guid>
		<description><![CDATA[1、在父层增加float:left;或float:right;属性；<br/>2、在父层增加<br/>overflow:auto;（兼容IE7/FF）<br/>zoom:100%或zoom:1（兼容IE6）[IE6]<br/>IE浏览器还可以:height:1%;[只要是百分比就可以]<br/><br/>例子：<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">&#160;&#160;&#160;&#160;&lt;div id=&#34;bodyer&#34;&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;div class=&#34;siderbar&#34;&gt;这里是用户资是用户是用户料信息&lt;br/&gt;&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&lt;div class=&#34;mainbody&#34;&gt;这里是主题内容&lt;/div&gt;<br/>&#160;&#160;&#160;&#160;&lt;/div&gt;</div></div><br/>解决1CSS：<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">#bodyer{border:1px red solid;float:left;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#bodyer .siderbar{float:left;background-color:#fffbf4;width:200px;height:100%;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#bodyer .mainbody{float:right;background-color:#fffbf4;width:200px;}</div></div><br/><br/>解决2CSS：<br/><div class="UBBPanel quotePanel"><div class="UBBTitle"><img src="http://bokee.shinylife.net/blog/images/quote.gif" style="margin:0px 2px -3px 0px" alt="引用内容"/> 引用内容</div><div class="UBBContent">#bodyer{border:1px red solid;zoom:100%;height:1%;overflow:auto;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#bodyer .siderbar{float:left;background-color:#fffbf4;width:200px;height:100%;}<br/>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;#bodyer .mainbody{float:right;background-color:#fffbf4;width:200px;}</div></div>]]></description>
		</item>
		
			<item>
			<link>http://bokee.shinylife.net/blog/article.asp?id=811</link>
			<title><![CDATA[层定位原理]]></title>
			<author>paulleder@msn.com(PaulLeder)</author>
			<category><![CDATA[CSS]]></category>
			<pubDate>Wed,23 Jul 2008 22:08:01 +0800</pubDate>
			<guid>http://bokee.shinylife.net/blog/default.asp?id=811</guid>
		<description><![CDATA[<div id="thisdes">&ldquo;为何我的层不会老老实实地显示在它该在的位置上？&rdquo;，这个问题算是在学习&ldquo;用DIV+CSS制作网页&rdquo;的过程中问得最多的问题之一了，这次我们将学习如何驾驭它。<br />作者：COOANT <br />最后更新日期：2007年12月24日 </div>
<ul id="sublist">
    <li><a href="http://www.tripow.com/tutorial/divcss/004.html#1">一、概述</a> </li>
    <li><a href="http://www.tripow.com/tutorial/divcss/004.html#2">二、position属性</a> </li>
    <li><a href="http://www.tripow.com/tutorial/divcss/004.html#3">三、top,right,bottom,left属性</a> </li>
    <li><a href="http://www.tripow.com/tutorial/divcss/004.html#4">四、float属性</a> </li>
    <li><a href="http://www.tripow.com/tutorial/divcss/004.html#5">五、z-index属性</a> </li>
</ul>
<div class="partdiv">
<h2>一、概述<a id="1" name="1"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;本文以标签&ldquo;&lt;div&gt;&lt;/div&gt;&rdquo;为例进行讲解，部分内容同样适用于部分其它块(block)标签元素。<br />&nbsp;&nbsp;&nbsp;&nbsp;本文中的范例通过测试的浏览器为IE6、IE7、Firefox2。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;我们在平时的网页制作中，已经或多或少的接触过CSS样式表中的&ldquo;position(位置)&rdquo;属性，其实这基本算是定位根源所在了。当然了，这并不是全部，如果再加上&ldquo;float&rdquo;、&ldquo;z-index&rdquo;等属性，我们的层定位将会更加完美。下面我们将一一讲解：<br /><br /></div>
<div class="partdiv">
<h2>二、position属性<a id="2" name="2"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;position属性有五个取值，分别为：static, relative, absolute, fixed, inherit, 其中&ldquo;static&rdquo;为默认值。<br /><br />
<h3>&middot;static</h3>
&nbsp;&nbsp;&nbsp;&nbsp;该值为position的默认值，可以省略不写，当position取值为static或者没有设置position属性的时候，div的显示方式为按文本流的顺序从上至下，或者从左到右顺序显示。<br />例如：<br />
<div style="BORDER-RIGHT: #999900 1px solid; BORDER-TOP: #999900 1px solid; MARGIN-BOTTOM: 5px; BORDER-LEFT: #999900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #999900 1px solid; HEIGHT: 80px; BACKGROUND-COLOR: #ccff99">层一</div>
<div style="BORDER-RIGHT: #999900 1px solid; BORDER-TOP: #999900 1px solid; BORDER-LEFT: #999900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #999900 1px solid; HEIGHT: 80px; BACKGROUND-COLOR: #ccff99">层二</div>
源代码如下：<br />
<div class="code">&lt;div class=&quot;style&quot;&gt;层一&lt;/div&gt;<br />&lt;div class=&quot;style&quot;&gt;层二&lt;/div&gt;<br />.style {<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #999900;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#CCFF99;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:5px;<br />} </div>
<br />
<h3>&middot;relative</h3>
&nbsp;&nbsp;&nbsp;&nbsp;相对定位，相对于什么位置呢？官方手册中是这样说的：&ldquo;Relative position that is offset from the initial normal position in the flow.&rdquo;可以简单的如此解释：偏移文本流中最初的位置。最初位置也就是当position取值为static时的位置，也就是说这里的相对定位是相对于它在正常情况下的默认位置的。下图列出了偏移产生前后的位置关系：<br /><img src="http://www.tripow.com/tutorial/divcss/images/relative.gif" alt="" /><br />完整的代码如下：<br />偏移前：
<div class="code">&lt;style type=&quot;text/css&quot;&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:10px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#acd373;<br />}<br />.style2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#f26c4f;<br />}<br />&lt;/style&gt;<br />&lt;div class=&quot;style1&quot;&gt;层一&lt;/div&gt;<br />&lt;div class=&quot;style2&quot;&gt;层二&lt;/div&gt;<br /></div>
<br />偏移后：
<div class="code">&lt;style type=&quot;text/css&quot;&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;left:30px;<br />&nbsp;&nbsp;&nbsp;&nbsp;top:30px;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:10px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#acd373;<br />}<br />.style2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#f26c4f;<br />}<br />&lt;/style&gt;<br />&lt;div class=&quot;style1&quot;&gt;层一&lt;/div&gt;<br />&lt;div class=&quot;style2&quot;&gt;层二&lt;/div&gt;<br /></div>
<br />结合以上图示和CSS样式表可以得出以下两个结论：<br />
<ul>
    <li>设置了position:relative而不设置left,top等属性的时候，层显示的位置和不设置position属性或者position值取static时一样。 </li>
    <li>当一个层设置了position:relative，而且使得层位置产生相对偏移时，并不影响文本流中接下来的其他层的位置。 </li>
</ul>
&nbsp;&nbsp;&nbsp;&nbsp;另外我们还可以做如下尝试，当层二对应的css样式表&ldquo;style2&rdquo;不设置position:relative时，会发现层一偏移后重叠时，层一覆盖了层二。而不是我们图示上层二覆盖了层一。<br />&nbsp;&nbsp;&nbsp;&nbsp;原因时这样的，当设置了position:relative，层的层叠级别高于默认的文本流级别。当然了，如果都设置了position:relative，同等级别下将会按照文本流的顺序层叠显示。 <br /><br />
<h3>&middot;absolute</h3>
&nbsp;&nbsp;&nbsp;&nbsp;绝对定位，回忆一下，当我们设置position的值为static或者relative时，层依然存在于文本流中，也就是不管位置是否偏移，文本流中依然为它保留了该有的位置。但当层设置了position:relative并产生偏移（设置了top,left等值）时，该层将完全从文本流中脱离，进而以该层所在的<span class="redword bold">父容器</span>的坐标原点为参考点进行偏移，可以这理解，该层已经和同级容器中的其它元素脱离了关系，也不会对其它元素产生人和影响（当它不存在！）。<br />&nbsp;&nbsp;&nbsp;&nbsp;注意：如果父容器没有设置position属性或position值为static时，将以body的坐标原点为参考。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;下面我们以三个图示来分别说明。<br /><img src="http://www.tripow.com/tutorial/divcss/images/absolute.gif" alt="" /><br />上面三个页面效果的css样式表如下：<br />
<div>
<div style="FLOAT: left; WIDTH: 220px; MARGIN-RIGHT: 10px">页面一：<br />
<div class="code">&lt;style type=&quot;text/css&quot;&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#a2d39c;<br />}<br />.style2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#f68e56;<br />}<br />.style3 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#00adef;<br />}<br />&lt;/style&gt;<br />&lt;div class=&quot;style1&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style2&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style3&quot;&gt;&lt;/div&gt;<br />&lt;/div&gt;<br /></div>
</div>
<div style="FLOAT: left; WIDTH: 220px; MARGIN-RIGHT: 10px">页面二：<br />
<div class="code">&lt;style type=&quot;text/css&quot;&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#a2d39c;<br />}<br />.style2 {<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;position:absolute;<br />&nbsp;&nbsp;&nbsp;&nbsp;top:0;<br />&nbsp;&nbsp;&nbsp;&nbsp;left:0;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#f68e56;<br />}<br />.style3 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#00adef;<br />}<br />&lt;/style&gt;<br />&lt;div class=&quot;style1&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style2&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style3&quot;&gt;&lt;/div&gt;<br />&lt;/div&gt;<br /></div>
</div>
<div style="FLOAT: left; WIDTH: 220px; MARGIN-RIGHT: 10px">页面三：<br />
<div class="code">&lt;style type=&quot;text/css&quot;&gt;<br />.style1 {<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;position:relative;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;height:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:150px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#a2d39c;<br />}<br />.style2 {<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;position:absolute;<br />&nbsp;&nbsp;&nbsp;&nbsp;top:10px;<br />&nbsp;&nbsp;&nbsp;&nbsp;left:10px;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#f68e56;<br />}<br />.style3 {<br />&nbsp;&nbsp;&nbsp;&nbsp;height:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:50px;<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #000;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#00adef;<br />}<br />&lt;/style&gt;<br />&lt;div class=&quot;style1&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style2&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;style3&quot;&gt;&lt;/div&gt;<br />&lt;/div&gt;<br /></div>
</div>
</div>
<!--范例源代码结束-->
<div style="CLEAR: both">&nbsp;&nbsp;&nbsp;&nbsp;通过以上的范例和理论说明，我们应该从原理上理解了absolute定位。这里补上官方对于absolute的解释：<br />&nbsp;&nbsp;&nbsp;&nbsp;&ldquo;Taken out of the flow and offset according to the containing block. &rdquo;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;截至这里，希望各位可以稍作休息，尝试修改上面范例中的css属性，做到举一反三，充分理解。 </div>
<br />
<h3>&middot;fixed </h3>
&nbsp;&nbsp;&nbsp;&nbsp;固定定位，它的效果类似常见的浮动广告，无论如何拖动浏览器的滚动条，层始终悬浮在浏览器的某个位置。由于该属性只能被Firefox很好的支持，虽然可以在通过其它设置在IE6.0中得到同样的效果，但由于本文篇幅原因，不继续对本属性继续作解释。下面的经典案例中将会有相关解释。 <br />
<h3>&middot;inherit </h3>
&nbsp;&nbsp;&nbsp;&nbsp;继承，和其它属性的继承一样。在这里为继承父元素中的position值。 </div>
<div class="partdiv">
<h2>三、top,right,bottom,left属性<a id="3" name="3"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;这四个属性中的top和left属性之前有使用过（right和bottom用法也一样），大致功能我们基本已经清楚了，这里再简单介绍一下。<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;这四个属性在设置了position属性，并且值不为static时生效。当position取值relative时，偏离文本流初始位置；当position取值absolute时，以父容器对应的初始点为原点偏移，如果父容器没有设置positon或者position取值static时，以body对应的坐标点为参考点偏移。 &nbsp;&nbsp;&nbsp;&nbsp;top,right,bottom,left属性的取值除了具体的数值外，还可以是百分比、继承、或者auto（默认值）。 </div>
<div class="partdiv">
<h2>四、float属性<a id="4" name="4"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;取值包括inherit，left，right以及默认值none，该属性用于控制文本流的显示方向。需要注意的是如果设置了该属性并取值为left或right后，会影响到该流后面的其它盒子模型。可以通过设置&ldquo;clear:both;&rdquo;清除该属性设置。 例如：<br />
<div style="BORDER-RIGHT: #999900 1px solid; BORDER-TOP: #999900 1px solid; FLOAT: left; MARGIN-BOTTOM: 5px; BORDER-LEFT: #999900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #999900 1px solid; HEIGHT: 80px; BACKGROUND-COLOR: #ccff99">层一</div>
<div style="BORDER-RIGHT: #999900 1px solid; BORDER-TOP: #999900 1px solid; BORDER-LEFT: #999900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #999900 1px solid; HEIGHT: 80px; BACKGROUND-COLOR: #ccff99">层二</div>
<div style="CLEAR: both; BORDER-RIGHT: #999900 1px solid; BORDER-TOP: #999900 1px solid; BORDER-LEFT: #999900 1px solid; WIDTH: 80px; BORDER-BOTTOM: #999900 1px solid; HEIGHT: 80px; BACKGROUND-COLOR: #ccff99">层三</div>
<div style="CLEAR: both">源代码如下：</div>
<div class="code">&lt;div class=&quot;style1&quot;&gt;层一&lt;/div&gt;<br />&lt;div class=&quot;style1&quot;&gt;层二&lt;/div&gt;<br />&lt;div class=&quot;style2&quot;&gt;层三&lt;/div&gt;<br />.style1 {<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #999900;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#CCFF99;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;float:left;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:5px;<br />}<br />.style2 {<br />&nbsp;&nbsp;&nbsp;&nbsp;border:1px solid #999900;<br />&nbsp;&nbsp;&nbsp;&nbsp;background-color:#CCFF99;<br />&nbsp;&nbsp;&nbsp;&nbsp;width:80px;<br />&nbsp;&nbsp;&nbsp;&nbsp;height:80px;<br /><span class="redword">&nbsp;&nbsp;&nbsp;&nbsp;clear:both;<br /></span>&nbsp;&nbsp;&nbsp;&nbsp;margin-bottom:5px;<br />} </div>
<br />&nbsp;&nbsp;&nbsp;&nbsp;需要注意的是由于float控制的是文本流方向，当为层设置了&ldquo;position:absolute;&rdquo;后，float将不再有效，应为此时层已经脱离该文本流。 </div>
<div class="partdiv">
<h2>五、z-index属性<a id="5" name="5"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;该属性在设置了position并取值为&ldquo;absolute&rdquo;或&ldquo;relative&rdquo;时有效，用于控制层在Z- 轴上的排列顺序，值为整数（由于不同浏览器的兼容性的区别，最好是正整数），取值越大层越在最上面。 </div>
<!--
该部分内容单独写在第三部分“经典案例”中的层定位部分
<script type="text/javascript">
function menuexpl(){
window.open("pozmenu_1.html","","width=500,height=500,left=200,top=100,scrollbars=no,toolbar=no,location=no,direction=no,resizeable=no");
}
</script>
<div class="partdiv">
<h2>六、利用层定位原理制作下拉菜单<a name="6" id="6"></a></h2>
&nbsp;&nbsp;&nbsp;&nbsp;很多时候困惑我们最多的就是下拉菜单在不同的分辩率下的显示问题。通过以上的学习，我们应该能做出一个完全兼容的下拉菜单了。下面范例的代码就不作具体解释了，大家可以自己理解并举一反三。
<br  /><br  />
<div style="height:60px;"><a href="http://bokee.shinylife.net/blog/javascript:menuexpl();">点击打开下拉菜单范例</a></div>
</div>
--><br />]]></description>
		</item>
		
</channel>
</rss>
