<?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>5JUN&#039;s Blog &#187; div</title>
	<atom:link href="http://5jun.com/tag/div/feed" rel="self" type="application/rss+xml" />
	<link>http://5jun.com</link>
	<description>快乐生活！快乐工作！</description>
	<lastBuildDate>Wed, 01 Sep 2010 15:28:41 +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>给DIV或块元素加链接及:hover效果</title>
		<link>http://5jun.com/72.html</link>
		<comments>http://5jun.com/72.html#comments</comments>
		<pubDate>Fri, 05 Dec 2008 22:56:02 +0000</pubDate>
		<dc:creator>5JUN</dc:creator>
				<category><![CDATA[网页设计]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[块元素]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=72</guid>
		<description><![CDATA[　　当你在做页面时，想给一个div或p等元素加链接，首先你会考虑到a标签，但是如果在此div内已经包含了多个a标签，你再在此div上套用a标签，是不符合标准的，所以考虑用onmouseover事件。 　　代码如下： &#60;div onmouseover="this.style.cursor='pointer'" onclick="document.location='http://www.baidu.com';" &#62;就是这个DIV，点点看。&#60;/div&#62; 　　其中Http://www.baidu.com就是你链接到的网址。 　　如果你想此div链接鼠标经过时背景或边框有所变化，可以通过hover来实现。 CSS代码如下： div { 　　width:300px; 　　height:100px; 　　color:#666; 　　text-align:center; 　　background:#ddd; 　　border:1px solid #aaa; } div:hover,div.hover { 　　color:#fff; 　　background:#0099FF; 　　border:1px solid #000; } 　　这样当你鼠标经过这个div时，背景色和边框都会发生变化，但是此效果在IE6中不能得到效果，因为IE6不支持hover伪类。在上面CSS样式中:hover是给非IE浏览器识别的，因为大多数非IE浏览器都已经支持任意标记的hover伪类了。.hover是给IE6以及以下版本识别的，因为IE6以及一下版本一直都只支持&#60;A href=&#8221;"&#62;标记的hover伪类(IE7已支持任意标记hover伪类效果)。 　　为了让IE6也能得到hover效果，还需加入以下JS代码： &#60;script type="text/javascript"&#62; &#60;!-- // 让所有标记支持hover function $(){ if(document.all){ // 判断是否IE浏览器 var obj=document.all; for(var i=0;i&#60;obj.length;i++){ obj[i].onmouseover=function(){ this.className="hover" } ; obj[i].onmouseout=function(){ this.className="" } } } } [...]]]></description>
			<content:encoded><![CDATA[<p>　　当你在做页面时，想给一个div或p等元素加链接，首先你会考虑到a标签，但是如果在此div内已经包含了多个a标签，你再在此div上套用a标签，是不符合标准的，所以考虑用onmouseover事件。</p>
<p><strong>　　代码如下：</strong></p>
<pre><code>&lt;div onmouseover="this.style.cursor='pointer'"  onclick="document.location='http://www.baidu.com';" &gt;就是这个DIV，点点看。&lt;/div&gt;</code></pre>
<p>　　其中Http://www.baidu.com就是你链接到的网址。</p>
<p>　　如果你想此div链接鼠标经过时背景或边框有所变化，可以通过hover来实现。</p>
<pre><code><strong>CSS代码如下： </strong><span id="more-72"></span>
div {
　　width:300px;
　　height:100px;
　　color:#666;
　　text-align:center;
　　background:#ddd;
　　border:1px solid #aaa;
}
div:hover,div.hover {
　　color:#fff;
　　background:#0099FF;
　　border:1px solid #000;
}</code></pre>
<p>　　这样当你鼠标经过这个div时，背景色和边框都会发生变化，但是此效果在IE6中不能得到效果，因为IE6不支持hover伪类。在上面CSS样式中:hover是给非IE浏览器识别的，因为大多数非IE浏览器都已经支持任意标记的hover伪类了。.hover是给IE6以及以下版本识别的，因为IE6以及一下版本一直都只支持&lt;A href=&#8221;"&gt;标记的hover伪类(IE7已支持任意标记hover伪类效果)。</p>
<p>　　为了让IE6也能得到hover效果，还需加入以下JS代码：</p>
<pre><code>&lt;script type="text/javascript"&gt;
&lt;!-- // 让所有标记支持hover
function $(){
if(document.all){ // 判断是否IE浏览器
var obj=document.all;
for(var i=0;i&lt;obj.length;i++){
obj[i].onmouseover=function(){
this.className="hover"
} ;
obj[i].onmouseout=function(){
this.className=""
}
}
}
}
$();
//--&gt;
&lt;/script&gt;</code></pre>
<p><strong>　　查看效果：</strong></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_byi4fi">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;/head&gt;
&lt;style type=&quot;text/css&quot;&gt;
div {
   width:300px;
   height:100px;
   color:#666;
   text-align:center;
   background:#ddd;
   border:1px solid #aaa;
}
div:hover,div.hover {
   color:#fff;
   background:#0099FF;
   border:1px solid #000;
}
&lt;/style&gt;
&lt;body&gt;
&lt;div onmouseover=&quot;this.style.cursor='pointer'&quot;  onclick=&quot;document.location='http://www.baidu.com';&quot; &gt;就是这个DIV，点点看。&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
&lt;!-- // 让所有标记支持hover
function $(){
    if(document.all){ // 判断是否IE浏览器
        var obj=document.all;
        for(var i=0;i&lt;obj.length;i++){
            obj[i].onmouseover=function(){
                this.className=&quot;hover&quot;
            } ;
            obj[i].onmouseout=function(){
                this.className=&quot;&quot;
            }
        }
    }
}
$();
//--&gt;
&lt;/script&gt;
&lt;/body&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_byi4fi');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_byi4fi');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/72.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>随滚动条移动的DIV层</title>
		<link>http://5jun.com/54.html</link>
		<comments>http://5jun.com/54.html#comments</comments>
		<pubDate>Mon, 16 Jun 2008 19:42:49 +0000</pubDate>
		<dc:creator>5JUN</dc:creator>
				<category><![CDATA[代码分享]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[层]]></category>
		<category><![CDATA[滚动条]]></category>
		<category><![CDATA[移动]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=54</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;&#60;a href=&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34; target=&#34;_blank&#34; rel=&#34;external&#34;&#62;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#60;/a&#62;&#34;&#62; &#60;html xmlns=&#34;&#60;a href=&#34;http://www.w3.org/1999/xhtml&#34; target=&#34;_blank&#34; rel=&#34;external&#34;&#62;http://www.w3.org/1999/xhtml&#60;/a&#62;&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;随滚动条移动的DIV层&#60;/title&#62; &#60;style&#62; &#60;!-- .div{ position: absolute; border: 2px solid #FFCC00; background-color: #3EB4E6; line-height:90px; font-size:12px; z-index:1000; color:#FFFFFF; } --&#62; &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;div id=&#34;Javascript.Div1&#34; class=&#34;div&#34; style=&#34;width: 240px; height:90px&#34; align=&#34;center&#34;&#62;正中...&#60;/div&#62; &#60;SCRIPT LANGUAGE=&#34;JavaScript&#34;&#62; function sc1(){ document.getElementById(&#34;Javascript.Div1&#34;).style.top=(document.documentElement.scrollTop+(document.documentElement.clientHeight-document.getElementById(&#34;Javascript.Div1&#34;).offsetHeight)/2)+&#34;px&#34;; [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" class="runcode_text" id="runcode_txt5Tf">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;&lt;a href=&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/a&gt;&quot;&gt;
&lt;html xmlns=&quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&quot; target=&quot;_blank&quot; rel=&quot;external&quot;&gt;http://www.w3.org/1999/xhtml&lt;/a&gt;&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;随滚动条移动的DIV层&lt;/title&gt;
&lt;style&gt;
&lt;!--
.div{
 position: absolute;
 border: 2px solid #FFCC00;
 background-color: #3EB4E6;
 line-height:90px;
 font-size:12px;
 z-index:1000;
 color:#FFFFFF;
}
--&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;Javascript.Div1&quot; class=&quot;div&quot; style=&quot;width: 240px; height:90px&quot; align=&quot;center&quot;&gt;正中...&lt;/div&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
function sc1(){
 document.getElementById(&quot;Javascript.Div1&quot;).style.top=(document.documentElement.scrollTop+(document.documentElement.clientHeight-document.getElementById(&quot;Javascript.Div1&quot;).offsetHeight)/2)+&quot;px&quot;;
 document.getElementById(&quot;Javascript.Div1&quot;).style.left=(document.documentElement.scrollLeft+(document.documentElement.clientWidth-document.getElementById(&quot;Javascript.Div1&quot;).offsetWidth)/2)+&quot;px&quot;;
}
&lt;/SCRIPT&gt;
&lt;div id=&quot;Javascript.Div2&quot; class=&quot;div&quot; style=&quot;width: 240px; height:90px&quot; align=&quot;center&quot;&gt;左上...&lt;/div&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
function sc2(){
 document.getElementById(&quot;Javascript.Div2&quot;).style.top=(document.documentElement.scrollTop)+&quot;px&quot;;
 document.getElementById(&quot;Javascript.Div2&quot;).style.left=(document.documentElement.scrollLeft)+&quot;px&quot;;
}
&lt;/SCRIPT&gt;
&lt;div id=&quot;Javascript.Div3&quot; class=&quot;div&quot; style=&quot;width: 240px; height:90px&quot; align=&quot;center&quot;&gt;左下...&lt;/div&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
function sc3(){
 document.getElementById(&quot;Javascript.Div3&quot;).style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById(&quot;Javascript.Div3&quot;).offsetHeight)+&quot;px&quot;;
 document.getElementById(&quot;Javascript.Div3&quot;).style.left=(document.documentElement.scrollLeft)+&quot;px&quot;;
}
&lt;/SCRIPT&gt;
&lt;div id=&quot;Javascript.Div4&quot; class=&quot;div&quot; style=&quot;width: 240px; height:90px&quot; align=&quot;center&quot;&gt;右上...&lt;/div&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
function sc4(){
 document.getElementById(&quot;Javascript.Div4&quot;).style.top=(document.documentElement.scrollTop)+&quot;px&quot;;
 document.getElementById(&quot;Javascript.Div4&quot;).style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById(&quot;Javascript.Div4&quot;).offsetWidth)+&quot;px&quot;;
}
&lt;/SCRIPT&gt;
&lt;div id=&quot;Javascript.Div5&quot; class=&quot;div&quot; style=&quot;width: 240px; height:90px&quot; align=&quot;center&quot;&gt;右下...&lt;/div&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
function sc5(){
 document.getElementById(&quot;Javascript.Div5&quot;).style.top=(document.documentElement.scrollTop+document.documentElement.clientHeight-document.getElementById(&quot;Javascript.Div5&quot;).offsetHeight)+&quot;px&quot;;
 document.getElementById(&quot;Javascript.Div5&quot;).style.left=(document.documentElement.scrollLeft+document.documentElement.clientWidth-document.getElementById(&quot;Javascript.Div5&quot;).offsetWidth)+&quot;px&quot;;
}
&lt;/SCRIPT&gt;
&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;
&lt;!--
function scall(){
 sc1();sc2();sc3();sc4();sc5();
}
window.onscroll=scall;
window.onresize=scall;
window.onload=scall;
//--&gt;
&lt;/SCRIPT&gt;
&lt;div style=&quot;position: absolute; top: 0px; left: 0px; width: 10000px; height: 4000px;&quot;&gt;内容内容内容内容内容内容内容内容内容内容内容内容内容内容&lt;a href=&quot;#&quot;&gt;123123123123123&lt;/a&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_txt5Tf');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_txt5Tf');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/54.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决div列高度自动适应的三种最常用的方法</title>
		<link>http://5jun.com/34.html</link>
		<comments>http://5jun.com/34.html#comments</comments>
		<pubDate>Tue, 18 Mar 2008 09:24:27 +0000</pubDate>
		<dc:creator>5JUN</dc:creator>
				<category><![CDATA[网页设计]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[自动适应]]></category>
		<category><![CDATA[高度]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=34</guid>
		<description><![CDATA[　　解决div列高度自适的方法有很多种，这里介绍三种最常用的方法给大家（下面所有例子以父main，子divleft、divright为例）。 　　1、利用&#8220;clear:both&#8221;背景填充 　　这是使用最广泛的一种做法，我一直都用此方法解决div列高度自适问题。三行二列布局，主要内容在右边，网页宽度780px,左列240px,右列540px。 CSS代码： #main{ 　　width: 780px; 　　margin: 0; 　　background: url(bg.gif) #FFFFFF repeat-y left; 　　text-align: left; } #divleft{ 　　float: left; 　　width: 240px; } #divright{ 　　float: right; 　　width: 540px; } .clear{ 　　border-top:1px solid transparent !important; 　　margin-top:-1px !important; 　　border-top:0; 　　margin-top:0; 　　clear:both; 　　visibility:hidden; } html代码： &#60;div id=&#34;main&#34;&#62; 　&#60;div id=&#34;divleft&#34;&#62;&#60;/div&#62; 　　&#60;div id=&#34;divright&#34;&#62;&#60;/div&#62; 　&#60;div class=&#34;clear&#34;&#62;&#60;/div&#62; &#60;/div&#62; 　　优点：无hacks，完全的自适应高度。 　　2、脚本控制高度 在&#60;body&#62;中加入如下代码（假设divright的高度相对最高）： &#60;script [...]]]></description>
			<content:encoded><![CDATA[<p>　　解决div列高度自适的方法有很多种，这里介绍三种最常用的方法给大家（下面所有例子以父main，子divleft、divright为例）。</p>
<p><strong>　　1、利用&ldquo;clear:both&rdquo;背景填充</strong></p>
<p>　　这是使用最广泛的一种做法，我一直都用此方法解决div列高度自适问题。三行二列布局，主要内容在右边，网页宽度780px,左列240px,右列540px。</p>
<pre><code>CSS代码：<span id="more-34"></span>
<span style="COLOR: blue">#main{
　　width: 780px;
　　margin: 0;
　　background: url(bg.gif) #FFFFFF repeat-y left;
　　text-align: left;
}
#divleft{
　　float: left;
　　width: 240px;
}
#divright{
　　float: right;
　　width: 540px;
}
.clear{
　　border-top:1px solid transparent !important;
　　margin-top:-1px !important;
　　border-top:0;
　　margin-top:0;
　　clear:both;
　　visibility:hidden;
}</span>
</code></pre>
<pre><code>html代码：
<span style="COLOR: blue">&lt;div id=&quot;main&quot;&gt;
　&lt;div id=&quot;divleft&quot;&gt;&lt;/div&gt;
　　&lt;div id=&quot;divright&quot;&gt;&lt;/div&gt;
　&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;
&lt;/div&gt;</span>
</code></pre>
<p><strong>　　优点：</strong>无hacks，完全的自适应高度。</p>
<p><strong>　　2、脚本控制高度</strong></p>
<p>在&lt;body&gt;中加入如下代码（假设divright的高度相对最高）：</p>
<pre><code><span style="COLOR: blue">&lt;script language=&quot;javascript&quot;&gt;
document.getElementById&quot;divleft&quot;).style.height=document.getElementById&quot;divright&quot;).scrollHeight+&quot;px&quot;
&lt;/script&gt;</span>
</code></pre>
<p><strong>　　优点：</strong>代码超级简单。</p>
<p><strong>　　缺点：</strong>要确定有某一列的高度始终是相对最高的，此方法比较被动。</p>
<p><strong>　　3、margin负值父子容器高度继承</strong></p>
<p>　　这个方法能较好地解决列高度相同的问题。三行二列布局，主要内容在左边，网页宽度780px,左列540px,右列240px。</p>
<pre><code>CSS代码：
<span style="COLOR: blue">#main{
　　width: 540px;
　　float:left;
　　background:#FFFFFF;
　　text-align:left;
}
#divleft{
　　width: 540px;
　　float: left;
　　position:relative;
　　margin-left:-540px;
}
#divright{
　　width: 240px;
　　float: right;
　　position:relative;
　　margin: 0 -240px 0 0;
　　background: #F0F0F0;
}</span>
</code></pre>
<pre><code>html代码：
<span style="COLOR: blue">&lt;div id=&quot;main&quot;&gt;
　&lt;div id=&quot;divleft&quot;&gt;
　　&lt;div id=&quot;divright&quot;&gt;&lt;/div&gt;
　&lt;/div&gt;
&lt;/div&gt;</span>
</code></pre>
<p>　　或许刚接触的Web Standards的朋友对这种方法不怎么理解，现Blank分析一下：</p>
<p>　　［Ａ］<br />　　［Ｂ］［Ｃ］</p>
<p>　　上结构中a包含c，c包含b。当b的高度为最高时，那么a和c将继承b的高度，如果a和b位置重合，将显示b的背景；而当c的高度最高时，那么a继承将继承c的高度，如果a和b位置重合，将显示a的背景。这样无论b最高或者c最高都将显示div列高度相同。</p>
<p><strong>　　优点：</strong>兼有第一种方法的优点，并且比第一种方法的代码稍微简洁。</p>
<p><strong>　　缺点：</strong>整体结构只能左对齐。</p>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/34.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>常用CSS元素div ul dl dt ol的用法</title>
		<link>http://5jun.com/21.html</link>
		<comments>http://5jun.com/21.html#comments</comments>
		<pubDate>Sun, 03 Feb 2008 15:41:06 +0000</pubDate>
		<dc:creator>5JUN</dc:creator>
				<category><![CDATA[网页设计]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[dl]]></category>
		<category><![CDATA[ul]]></category>

		<guid isPermaLink="false">http://www.5jun.com/wp/?p=21</guid>
		<description><![CDATA[　　div+css网页编写中几个常用css元素div ul li dl dt dd ol li。 div，这个很常见，块级元素，div尽量少用，和table一样，嵌套越少越好，下面是css元素简单的解释： 　　ol 有序列表。 &#60;ol&#62;   &#60;li&#62;……&#60;/li&#62;   &#60;li&#62;……&#60;/li&#62;   &#60;li&#62;……&#60;/li&#62; &#60;/ol&#62; 　　表现为： &#8230;&#8230; &#8230;&#8230; &#8230;&#8230; 　　ul 无序列表，表现为li前面是大圆点或方点，而不是123 &#60;ul&#62; &#60;li&#62;……&#60;/li&#62; &#60;li&#62;……&#60;/li&#62; &#60;/ul&#62; 　　效果： &#8230;&#8230; &#8230;&#8230; &#8230;&#8230; 　　很多人容易忽略 dl dt dd的用法： 　　dl 内容块　　dt 内容块的标题　　dd 内容 　　可以这么写： &#60;dl&#62; &#60;dt&#62;标题&#60;/dt&#62; &#60;dd&#62;内容1&#60;/dd&#62; &#60;dd&#62;内容2&#60;/dd&#62; &#60;/dl&#62; 　　dt 和dd中可以再加入 ol ul li和p 　　理解这些以后，在使用div布局的时候，灵活运用，会方便很多，w3c提供了很多元素辅助布局。]]></description>
			<content:encoded><![CDATA[<p>　　div+css网页编写中几个常用css元素div ul li dl dt dd ol li。 div，这个很常见，块级元素，div尽量少用，和table一样，嵌套越少越好，下面是css元素简单的解释：</p>
<p><strong>　　ol 有序列表。</strong></p>
<pre><code>&lt;ol&gt;
  &lt;li&gt;……&lt;/li&gt;
  &lt;li&gt;……&lt;/li&gt;
  &lt;li&gt;……&lt;/li&gt;
&lt;/ol&gt;</code></pre>
<p>　　表现为：</p>
<p><span id="more-21"></span></p>
<ol>
<li>&#8230;&#8230;</li>
<li>&#8230;&#8230;</li>
<li>&#8230;&#8230;</li>
</ol>
<p><strong>　　ul 无序列表，表现为li前面是大圆点或方点，而不是123</strong></p>
<pre><code>&lt;ul&gt;
&lt;li&gt;……&lt;/li&gt;
&lt;li&gt;……&lt;/li&gt;
&lt;/ul&gt;</code></pre>
<p>　　效果：</p>
<ul>
<li>&#8230;&#8230;</li>
<li>&#8230;&#8230;</li>
<li>&#8230;&#8230;</li>
</ul>
<p>　　很多人容易忽略 dl dt dd的用法：</p>
<p>
　　dl 内容块<br/>　　dt 内容块的标题<br/>　　dd 内容<br/>
</p>
<p>　　可以这么写：</p>
<pre><code>&lt;dl&gt;
&lt;dt&gt;标题&lt;/dt&gt;
&lt;dd&gt;内容1&lt;/dd&gt;
&lt;dd&gt;内容2&lt;/dd&gt;
&lt;/dl&gt;
</code></pre>
<p>　　dt 和dd中可以再加入 ol ul li和p</p>
<p>　　理解这些以后，在使用div布局的时候，灵活运用，会方便很多，w3c提供了很多元素辅助布局。</p>
]]></content:encoded>
			<wfw:commentRss>http://5jun.com/21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
