﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-skl-随笔分类-Div+CSS</title><link>http://www.cnitblog.com/skl/category/7906.html</link><description /><language>zh-cn</language><lastBuildDate>Tue, 27 Sep 2011 23:12:25 GMT</lastBuildDate><pubDate>Tue, 27 Sep 2011 23:12:25 GMT</pubDate><ttl>60</ttl><item><title>如何让select的样式也漂亮起来</title><link>http://www.cnitblog.com/skl/archive/2008/12/29/53188.html</link><dc:creator>单</dc:creator><author>单</author><pubDate>Mon, 29 Dec 2008 04:03:00 GMT</pubDate><guid>http://www.cnitblog.com/skl/archive/2008/12/29/53188.html</guid><wfw:comment>http://www.cnitblog.com/skl/comments/53188.html</wfw:comment><comments>http://www.cnitblog.com/skl/archive/2008/12/29/53188.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/skl/comments/commentRss/53188.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/skl/services/trackbacks/53188.html</trackback:ping><description><![CDATA[&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;<br>&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;<br>&lt;title&gt;如何让select的样式也漂亮起来&lt;/title&gt;<br>&lt;style type="text/css"&gt;<br>&lt;!--<br>.select * {<br>&nbsp; margin: 0;<br>&nbsp; padding: 0;<br>}<br>.select {<br>&nbsp; border:1px solid #cccccc;<br>&nbsp; float: left;<br>&nbsp; display: inline;<br>&nbsp; }<br>.select div {<br>&nbsp; border:1px solid #f9f9f9;<br>&nbsp; float: left;<br>}<br>/* 子选择器，在FF等非IE浏览器中识别 */<br>.select&gt;div {<br>&nbsp; width:120px;<br>&nbsp; height: 17px;<br>&nbsp; overflow:hidden;<br>&nbsp; }<br>&nbsp; <br>/* 通配选择符，只在IE浏览器中识别 */<br>* html .select div select {<br>&nbsp; display:block;<br>&nbsp; float: left;<br>&nbsp; margin: -2px;<br>}<br>.select div&gt;select {<br>&nbsp; display:block;<br>&nbsp; width:124px;<br>&nbsp; float:none;<br>&nbsp; margin: -2px;<br>&nbsp; padding: 0px;<br>}<br>.select:hover {<br>&nbsp; border:1px solid #666666; //鼠标移上的效果 <br>}<br>.select select&gt;option {<br>&nbsp; text-indent: 2px; //option在FF等非IE浏览器缩进2px<br>}<br>--&gt;<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;&lt;div class="select"&gt;<br>&nbsp;&lt;div&gt;<br>&nbsp;&lt;select&gt;<br>&nbsp; &lt;option&gt;看见效果了吧&lt;/option&gt;<br>&nbsp; &lt;option&gt;看见效果了吧&lt;/option&gt;<br>&nbsp; &lt;option&gt;看见效果了吧&lt;/option&gt;<br>&nbsp;&lt;/select&gt;<br>&nbsp;&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;
<img src ="http://www.cnitblog.com/skl/aggbug/53188.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/skl/" target="_blank">单</a> 2008-12-29 12:03 <a href="http://www.cnitblog.com/skl/archive/2008/12/29/53188.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>SELECT样式控制</title><link>http://www.cnitblog.com/skl/archive/2008/12/29/53189.html</link><dc:creator>单</dc:creator><author>单</author><pubDate>Mon, 29 Dec 2008 04:03:00 GMT</pubDate><guid>http://www.cnitblog.com/skl/archive/2008/12/29/53189.html</guid><wfw:comment>http://www.cnitblog.com/skl/comments/53189.html</wfw:comment><comments>http://www.cnitblog.com/skl/archive/2008/12/29/53189.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/skl/comments/commentRss/53189.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/skl/services/trackbacks/53189.html</trackback:ping><description><![CDATA[<p>&lt;style&gt;<br><span style="COLOR: #0000ff">select</span>{ <br>width:120; <br>margin:-2px; <br>} <br><span style="COLOR: #0000ff">.myselect</span>{ <br>width:118; <br>border:1px solid #000099; <br>overflow:hidden <br>} <br>&lt;/style&gt;</p>
<p><br><span style="COLOR: #ff0000">&lt;span class=myselect&gt; </span><br>&lt;select&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;1&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;option&gt;2&lt;/option&gt;<br>&lt;/select&gt; <br><span style="COLOR: #ff0000">&lt;/span&gt;</span> </p>
<img src ="http://www.cnitblog.com/skl/aggbug/53189.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/skl/" target="_blank">单</a> 2008-12-29 12:03 <a href="http://www.cnitblog.com/skl/archive/2008/12/29/53189.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>默认图片是灰色鼠标放上去变彩色css效果代码 </title><link>http://www.cnitblog.com/skl/archive/2008/12/26/53075.html</link><dc:creator>单</dc:creator><author>单</author><pubDate>Fri, 26 Dec 2008 08:02:00 GMT</pubDate><guid>http://www.cnitblog.com/skl/archive/2008/12/26/53075.html</guid><wfw:comment>http://www.cnitblog.com/skl/comments/53075.html</wfw:comment><comments>http://www.cnitblog.com/skl/archive/2008/12/26/53075.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/skl/comments/commentRss/53075.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/skl/services/trackbacks/53075.html</trackback:ping><description><![CDATA[<p>&lt;style type="text/css"&gt;</p>
<p>A IMG {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FILTER: gray<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>A:hover IMG {FILTER:<br>}&lt;/style&gt;&lt;a href="<a href="http://www.sincol.com%22%3e%3cimg/">http://www.sincol.com"&gt;<br>&lt;img</a> border="0" alt="" src="<a href="http://www.sincol.net/uploads/img/lanrentuku_colorpic.jpg">http://www.sincol.net/uploads/img/lanrentuku_colorpic.jpg</a>" /&gt; &lt;/a&gt;</p>
<img src ="http://www.cnitblog.com/skl/aggbug/53075.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/skl/" target="_blank">单</a> 2008-12-26 16:02 <a href="http://www.cnitblog.com/skl/archive/2008/12/26/53075.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>div滑动变背景</title><link>http://www.cnitblog.com/skl/archive/2008/12/26/53074.html</link><dc:creator>单</dc:creator><author>单</author><pubDate>Fri, 26 Dec 2008 07:55:00 GMT</pubDate><guid>http://www.cnitblog.com/skl/archive/2008/12/26/53074.html</guid><wfw:comment>http://www.cnitblog.com/skl/comments/53074.html</wfw:comment><comments>http://www.cnitblog.com/skl/archive/2008/12/26/53074.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/skl/comments/commentRss/53074.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/skl/services/trackbacks/53074.html</trackback:ping><description><![CDATA[<p>&nbsp;</p>
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"&gt;<br>&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&gt;<br>&lt;title&gt;火红五月天&lt;/title&gt;<br>&lt;style type="text/css"&gt;<br>#menu ul li{<br>float:left;<br>list-style:none;<br>margin:1px;<br>}<br>a{<br>background:url(<a href="http://www.anace.cn/images/zdbs.gif">http://www.anace.cn/images/zdbs.gif</a>) no-repeat 0px 5px;&nbsp; /* 这里是背景的关键部分 */<br>text-decoration:none;<br>color:#CCCCCC;<br>font-size:100%;<br>background-color:#235F9A;<br>padding:2px 4px;<br>border-top:2px solid #666;<br>border-left:2px solid #666;<br>border-bottom:1px solid #999;<br>border-right:1px solid #999;}<br>a:hover{<br>background-color:#3276A9;<br>background:url(<a href="http://www.anace.cn/images/rss_article.gif">http://www.anace.cn/images/rss_article.gif</a>) no-repeat 0px 5px;&nbsp; /* 这里是背景的关键部分 */<br>border-bottom:2px solid #666;<br>border-right:2px solid #666;<br>border-top:1px solid #999;<br>border-left:1px solid #999;}<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div id="menu"&gt;<br>&lt;ul&gt;<br>&lt;li&gt;&lt;a href="＃"&gt;首页&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="＃"&gt;音乐&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="＃"&gt;分享&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="＃"&gt;有趣&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="＃"&gt;对联&lt;/a&gt;&lt;/li&gt;<br>&lt;/ul&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;
<img src ="http://www.cnitblog.com/skl/aggbug/53074.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/skl/" target="_blank">单</a> 2008-12-26 15:55 <a href="http://www.cnitblog.com/skl/archive/2008/12/26/53074.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Div和Span区别</title><link>http://www.cnitblog.com/skl/archive/2008/12/16/52685.html</link><dc:creator>单</dc:creator><author>单</author><pubDate>Tue, 16 Dec 2008 07:43:00 GMT</pubDate><guid>http://www.cnitblog.com/skl/archive/2008/12/16/52685.html</guid><wfw:comment>http://www.cnitblog.com/skl/comments/52685.html</wfw:comment><comments>http://www.cnitblog.com/skl/archive/2008/12/16/52685.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/skl/comments/commentRss/52685.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/skl/services/trackbacks/52685.html</trackback:ping><description><![CDATA[<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SPAN </span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">和</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> DIV </span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">的区别在于，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">DIV(division)</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">是一个块级元素，可以包含段落、标题、表格，乃至诸如章节、摘要和备注等。而</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN </span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">是行内元素，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN </span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">的前后是不会换行的，它没有结构的意义，纯粹是应用样式，当其他行内元素都不合适时，可以使用</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　下面以一个实例来说明这两个属性的区别。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><strong><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-bidi-font-size: 12.0pt">代码</span></strong><strong><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt; mso-bidi-font-size: 12.0pt">:</span></strong><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">标记有一个重要而实用的特性，即它什么事也不会做，它的唯一目的就是围绕你的</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">代码中的其它元素，这样你就可以为它们指定样式了。在此例中，标识符允许你将一个段落分成不同的部分。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　还有一个标识符具有类似的功能，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">DIV</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">也被用来在</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">文件中建立逻辑部分。但与</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">不同，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">工作于文本块一级，它在它所包含的</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">元素的前面及后面都引入了行分隔。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"> <o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><strong><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial; mso-bidi-font-size: 12.0pt">效果</span></strong><strong><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt; mso-bidi-font-size: 12.0pt">:</span></strong><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">标记有一个重要而实用的特性，即它什么事也不会做，它的唯一目的就是围绕你的</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">代码中的其它元素，这样你就可以为它们指定样式了。在此例中，标识符允许你将一个段落分成不同的部分。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　还有一个标识符具有类似的功能，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">DIV</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">也被用来在</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">文件中建立逻辑部分。但与</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">SPAN</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">不同，</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: left; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; mso-pagination: widow-orphan" align=left><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">　　工作于文本块一级，它在它所包含的</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt">HTML</span><span style="FONT-SIZE: 9pt; FONT-FAMILY: 宋体; mso-font-kerning: 0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial">元素的前面及后面都引入了行分隔。</span><span lang=EN-US style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-font-kerning: 0pt"><o:p></o:p></span></p>
<img src ="http://www.cnitblog.com/skl/aggbug/52685.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/skl/" target="_blank">单</a> 2008-12-16 15:43 <a href="http://www.cnitblog.com/skl/archive/2008/12/16/52685.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>