<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[芸轩草堂 - 技术文章]]></title>
<link>http://www.zhouyuming.com/</link>
<description><![CDATA[让我热情奔放，走向明天的新生活]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[zhouyuming@vip.sina.com(石血)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>芸轩草堂</title>
	<url>http://www.zhouyuming.com/images/logos.gif</url>
	<link>http://www.zhouyuming.com/</link>
	<description>芸轩草堂</description>
</image>

			<item>
			<link>http://www.zhouyuming.com/article/zhishi/995.htm</link>
			<title><![CDATA[[下载]FlashFXP 简体中文版 3.7.4 Build 1286 Beta [烈火]]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Tue,16 Sep 2008 08:20:44 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=995</guid>
		<description><![CDATA[FlashFXP 是一个功能强大的 FXP/FTP 软件，融合了一些其他优秀 FTP 软件的优点，如像 CuteFTP 一样可以比较文件夹，支持彩色文字显示；像 BpFTP 支持多文件夹选择文件，能够缓存文件夹；像 LeapFTP 一样的外观界面，甚至设计思路也差相仿佛。支持文件夹(带子文件夹)的文件传送、删除；支持上传、下载及第三方文件续传；可以跳过指定的文件类型，只传送需要的文件；可以自定义不同文件类型的显示颜色；可以缓存远端文件夹列表，支持FTP代理及 Socks 3&amp;4；具有避免空闲功能，防止被站点踢出；可以显示或隐藏“隐藏”属性的文件、文件夹；支持每个站点使用被动模式等。<br/><br/><div id="mdown_ov62xoelod"></div><br /><script language="javascript" type="text/javascript">check('Action.asp?action=type2&main=http%3A%2F%2Fwww%2Ehrtsea%2Ecom%2Fsoft%2FFlashFXP%5F3%2E7%2E4%2E1286%5FBeta%5FSC%2Eexe','mdown_ov62xoelod','mdown_ov62xoelod');</script><br/><br/>FlashFXP v3.8 BETA - (3.7.4 build 1286)<br/><br/>* 修正了 SFTP 上传损坏的问题 (当传送的文件大于 256KB)<br/>* 添加了扩展工具栏托盘工具提示 (显示详细传送信息)<br/>* 添加了传送进度栏是否使用 Windows 主题的选项 (参数设置 &gt; 显示 &gt; 颜色和字体 &gt; 使用 Windows 主题)<br/>* 修正了在 SFTP 传送期间某些键盘快捷键被过滤的问题<br/>* 新增全局默认和会话的传送完成选项 &#34;重试失败的传送&#34;<br/>通过 &#34;主菜单 &gt; 会话 &gt; 重试失败的传送&#34; 设置每个会话<br/>通过 &#34;参数设置 &gt; 传送 &gt; 重试失败的传送&#34; 设置全局默认<br/>* 新增选项 &#34;重试前，移动失败的传送到队列的底部&#34;<br/>通过 &#34;参数设置 &gt; 传送 &gt; 选项&#34; 设置<br/>* 修正速度限制问题<br/>* 修正某些情况下退出时出现访问违反的问题<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/994.htm</link>
			<title><![CDATA[[下载]QQ影音1.0 Beta1]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Thu,11 Sep 2008 08:56:26 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=994</guid>
		<description><![CDATA[我的笔记本已经抛弃了快乐影音，安装了QQ影音1.0 Beta1。我个人比较喜欢尝鲜，另外一般大公司的产品的质量还是有保证的。正如我抛弃了极点五笔，现在用搜狗五笔一样。喜欢的可以试一下。<br/><div id="mdown_21u3iba2wg"></div><br /><script language="javascript" type="text/javascript">check('Action.asp?action=type2&main=http%3A%2F%2Fdl%5Fdir%2Eqq%2Ecom%2Finvc%2Fqqplayer%2FQQPlayer%5FSetup%5F1%2E0%2E180%2E201%2Eexe','mdown_21u3iba2wg','mdown_21u3iba2wg');</script>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/992.htm</link>
			<title><![CDATA[[下载]IObit SmartDefrag 1.0 Final - 高速磁盘整理]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Thu,11 Sep 2008 08:33:13 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=992</guid>
		<description><![CDATA[原来石血只用diskeeper整理磁盘，后来diskeeper越来越难注册，所以放弃了，终于发现了一款更好的磁盘整理软件-IObit SmartDefrag 1.0 Final 。并且它是免费的，并且还是中文版！很好用，请大家下载。<br/><div id="mdown_oo8f6p1mpl"></div><br /><script language="javascript" type="text/javascript">check('Action.asp?action=type2&main=ftp%3A%2F%2Fmajorgeeks%2Emirror%2Einternode%2Eon%2Enet%2Fdrives%2FDefragSetup%2Eexe','mdown_oo8f6p1mpl','mdown_oo8f6p1mpl');</script>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/958.htm</link>
			<title><![CDATA[单个日志页面地址已完全静态化]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Mon,21 Jul 2008 16:50:03 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=958</guid>
		<description><![CDATA[[改程序也是麻烦事儿啊......]<br/><img src="http://photo8.fotolog.net.cn/userimages/44/0/z/zhouyuming/51/500_J2UW8AHF.jpg" border="0" alt=""/><br/>如图所示，地址栏的地址已经完全静态化了，不再是一串符号！]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/954.htm</link>
			<title><![CDATA[[测试FCKeditor]新产品上线，雅虎奥运生活服务！]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,16 Jul 2008 08:49:00 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=954</guid>
		<description><![CDATA[<p><a href="http://zhouyuming.fotolog.com.cn/2121930.html"><img title="雅虎奥运生活服务" style="border-right: 1px; border-top: 1px; border-left: 1px; border-bottom: 1px" alt="" src="http://photo8.fotolog.net.cn/userimages/44/0/z/zhouyuming/51/500_x6rHkF40.jpg" /></a></p>
<p>经过半个月的努力，这个页面终于上线了。这个页面涉及到整个集团很多的子公司及各部门。改了几版，虽然还是散，但是终于先是上线了。</p>
<p>地址：<a href="http://2008.cn.yahoo.com/fuwu/index.html">http://2008.cn.yahoo.com/fuwu/index.html</a></p>
<p><a href="http://zhouyuming.fotolog.com.cn/2121931.html"><img title="条图" style="border-right: 1px; border-top: 1px; border-left: 1px; border-bottom: 1px" alt="" src="http://photo8.fotolog.net.cn/userimages/44/0/z/zhouyuming/51/500_tMrl0Vt9.jpg" /></a></p>
<p>第一版原型图。后发展了几版！搞得我也很累。联络了各部门的人员。但是最累的还是工程师！</p>
<p>这两年搞得东西太多，实在是懒得发上来，以后有空发些作品聊以自慰！！！！！！！</p>
<p>[测试结果]发文发图均没有问题。</p>
<p>[测试结果]编辑文章没有问题。</p>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/953.htm</link>
			<title><![CDATA[博客系统升级,准备体验全静态化页面,皮肤暂时初始！]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,16 Jul 2008 08:35:57 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=953</guid>
		<description><![CDATA[由于博客系统升级，皮肤暂时先撤下来，代码需要重做。先测试一下发文章！！！<br/>[测试结果]发表文章没有问题，编辑文章没有任何的问题。发表文章后，程序自动跳转至当前页面，而不再用选择跳转至首页或当前页。<br/>文章读不出数据解决，新程序上线需要清除原来程序缓存，最好同时也清除一下服务器的缓存信息。]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/929.htm</link>
			<title><![CDATA[十二天学会DIV+CSS之第十二天]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,02 Jul 2008 11:29:01 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=929</guid>
		<description><![CDATA[<div id="fontzoom" style="WORD-BREAK: break-all">
<p>第十二天&nbsp;校验及常见错误</p>
<p>辛苦了好多天，我们努力学习使用XHTML+CSS来重新设计我们的网站。那么我们如何知道自己制作的页面真的符合web标准？W3C和一些志愿者网站提供了在线校验程序，来帮助我们检查页面是否符合标准，并提供了修正错误的帮助信息。这些校验非常有用，是我调试页面第一步要做的事情。<br /><br /><strong>1.XHTML校验</strong><br /><br />●&nbsp;校验网址：<a href="http://validator.w3.org/" target="_blank"><u><font color="#0000ff">http://validator.w3.org/</font></u></a>&nbsp;<br />●&nbsp;校验方式:网址校验、文件上传校验&nbsp;<br />●&nbsp;校验成功，会显示&quot;This&nbsp;Page&nbsp;Is&nbsp;Valid&nbsp;XHTML&nbsp;1.0&nbsp;Transitional!&quot;,如图：<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309191813660.gif" border="0" /><br /><br />●&nbsp;校验失败，会显示更多校验选项和错误信息，如图：<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309191818671.gif" border="0" /><br /><br />一般选择&quot;Show&nbsp;Source&quot;和&quot;Verbose&nbsp;Output&quot;可以帮助你找到错误代码所在行和错误原因。<br /><br /><strong>XHTML校验常见错误原因对照表</strong><br />●&nbsp;No&nbsp;DOCTYPE&nbsp;Found!&nbsp;Falling&nbsp;Back&nbsp;to&nbsp;HTML&nbsp;4.01&nbsp;Transitional--未定义DOCTYPE。&nbsp;<br />●&nbsp;No&nbsp;Character&nbsp;Encoding&nbsp;Found!&nbsp;Falling&nbsp;back&nbsp;to&nbsp;UTF-8.--未定义语言编码。&nbsp;<br />●&nbsp;end&nbsp;tag&nbsp;for&nbsp;&quot;img&quot;&nbsp;omitted,&nbsp;but&nbsp;OMITTAG&nbsp;NO&nbsp;was&nbsp;specified--图片标签没有加&quot;/&quot;关闭。&nbsp;<br />●&nbsp;an&nbsp;attribute&nbsp;value&nbsp;specification&nbsp;must&nbsp;be&nbsp;an&nbsp;attribute&nbsp;value&nbsp;literal&nbsp;unless&nbsp;SHORTTAG&nbsp;YES&nbsp;is&nbsp;specified--属性值必须加引号。&nbsp;<br />●&nbsp;element&nbsp;&quot;DIV&quot;&nbsp;undefined---DIV标签不能用大写，要改成小写div。&nbsp;<br />●&nbsp;required&nbsp;attribute&nbsp;&quot;alt&quot;&nbsp;not&nbsp;specified---图片需要加alt属性。&nbsp;<br />●&nbsp;required&nbsp;attribute&nbsp;&quot;type&quot;&nbsp;not&nbsp;specified---JS或者CSS调用的标签漏了type属性。<br /><br />其中最最常见的错误就是标签的大小写问题了。通常这些错误都是关联的，比如忘记了一个&lt;/li&gt;其他&lt;li&gt;标签都会报错，所以不要看到一堆的错误害怕，通常解决了一个错误，其他的错误也都没有了。<br /><br />如果你的页面通过XHTML1.0校验，可以在页面上放置这么一个图标：&nbsp;<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309191818641.gif" border="0" /><br />代码如下：<br /></p>
<div class="UBBContent"><font color="#f70909">&lt;p&gt;&nbsp;&lt;a&nbsp;href=&quot;http://validator.w3.org/check/referer&quot;&gt;&lt;img&nbsp;src=&quot;http://www.w3.org/Icons/valid-xhtml10&quot;&nbsp;alt=&quot;Valid&nbsp;XHTML&nbsp;1.0!&quot;&nbsp;height=&quot;31&quot;&nbsp;width=&quot;88&quot;&nbsp;/&gt;&lt;/a&gt;&nbsp;&lt;/p&gt;</font>&nbsp;</div>
<div class="UBBContent">&nbsp;</div>
<div class="UBBContent"><strong>2.CSS2校验<br /><br /></strong>●&nbsp;校验网址：<a href="http://validator.w3.org/ " target="_blank"><u><font color="#0000ff">http://validator.w3.org/&nbsp;</font></u></a><br />●&nbsp;校验方式:网址校验、文件上传校验&nbsp;<br />●&nbsp;校验成功，会显示&quot;This&nbsp;Page&nbsp;Is&nbsp;Valid&nbsp;XHTML&nbsp;1.0&nbsp;Transitional!&quot;,如图：<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309191818518.gif" border="0" /><br /><br />校验失败，会显示两类错误：错误和警告。错误表示一定要修正，否则无法通过校验；警告表示有代码不被W3C推荐,建议修改。<br /><br />CSS2校验常见错误原因对照表<br />●&nbsp;(错误)无效数字&nbsp;:&nbsp;color909090&nbsp;不是一个&nbsp;color&nbsp;值&nbsp;:&nbsp;909090&nbsp;---十六进制颜色值必须加&quot;#&quot;号，即#909090&nbsp;<br />●&nbsp;(错误)无效数字&nbsp;:&nbsp;margin-topUnknown&nbsp;dimension&nbsp;:&nbsp;6pixels&nbsp;---pixels不是一个单位值，正确写法6px&nbsp;<br />●&nbsp;(错误)属性&nbsp;scrollbar-face-color&nbsp;不存在&nbsp;:&nbsp;#eeeeee&nbsp;---&nbsp;定义滚动条颜色是非标准的属性&nbsp;<br />●&nbsp;(错误)值&nbsp;cursorhand不存在&nbsp;:&nbsp;hand是非标准属性值，修改为cursor:pointer&nbsp;<br />●&nbsp;(警告)Line&nbsp;:&nbsp;0&nbsp;font-family:&nbsp;建议你指定一个种类族科作为最后的选择&nbsp;--W3C建议字体定义的时候，最后以一个类别的字体结束，例如&quot;sans-serif&quot;，以保证在不同操作系统下，网页字体都能被显示。&nbsp;<br />●&nbsp;(警告)Line&nbsp;:&nbsp;0&nbsp;can't&nbsp;find&nbsp;the&nbsp;warning&nbsp;message&nbsp;for&nbsp;otherprofile&nbsp;--表示在代码中有非标准属性或值，校验程序无法判断和提供相应的警告信息。&nbsp;<br /><br />同样，通过检验后，可以放置一个CSS校验通过图标，代码如下：</div>
<div class="UBBContent"><font color="#ee3d11">&lt;p&gt;&nbsp;&lt;a&nbsp;href=&quot;http://jigsaw.w3.org/css-validator/&quot;&gt;&nbsp;&lt;img&nbsp;style=&quot;border:0;width:88px;height:31px&quot;&nbsp;src=&quot;http://jigsaw.w3.org/css-validator/images/vcss&quot;&nbsp;alt=&quot;Valid&nbsp;CSS!&quot;&nbsp;/&gt;&nbsp;&lt;/a&gt;&nbsp;&lt;/p&gt;</font></div>
<center></center></div>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/928.htm</link>
			<title><![CDATA[十二天学会DIV+CSS之第十一天]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,02 Jul 2008 11:28:09 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=928</guid>
		<description><![CDATA[<div id="fontzoom" style="WORD-BREAK: break-all">
<p>第十一天&nbsp;不用表格的菜单</p>
<p>布局初步搭建起来，我开始填充里面的内容。首先是定义logo图片：<br /><br />样式表：<span style="COLOR: green">#logo&nbsp;{MARGIN:&nbsp;0px;padding:0px;WIDTH:&nbsp;200px;HEIGHT:80px;}</span><br />页面代码：<span style="COLOR: green">&lt;div&nbsp;id=&quot;logo&quot;&gt;&lt;a&nbsp;title=&quot;WEB2.0标准教程&nbsp;循序渐进十二天的基础学习！&nbsp;&quot;&nbsp;href=&quot;/Article/UploadFiles/200803/20080309190154251.gif&quot;&nbsp;width=&quot;200&quot;&nbsp;/&gt;&lt;/a&gt;&lt;/div&gt;&nbsp;</span><br />以上代码现在应该容易理解。先在CSS定义了一个logo的层，然后在页面中调用它。需要说明的是，为了使网页有更好的易用性，web标准要求大家给所有的、属于正式内容的图片，加一个alt属性。这个alt属性是用来说明图片的作用(当图片不能显示的时候就显示替换文字)，所以不要只写成无意义的图片名称。<br />接下来是定义菜单：<br /><br /><strong>1.不用表格的菜单(纵向)</strong><br /><br />我们先来看菜单的最终效果：<br /><font color="#c4573c">&lt;html&gt;<br />&nbsp;&lt;head&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />&lt;!--<br />body,div {font-size:12px;}<br />#menu {<br />MARGIN: 15px 20px 0px 15px;&nbsp; /*定义层的外边框距离*/<br />PADDING:15px;&nbsp;&nbsp;&nbsp; /*定义层的内边框为15px*/<br />BACKGROUND: #dfdfdf;&nbsp;&nbsp; /*定义背景颜色*/<br />COLOR: #666;&nbsp;&nbsp;&nbsp; /*定义字体颜色*/<br />BORDER:#fff 2px solid;&nbsp; /*定义边框为2px白色线条*/<br />WIDTH:160px;&nbsp;&nbsp;&nbsp; /*定义内容的宽度为160px*/<br />} <br />#menu ul {<br />MARGIN: 0px;<br />PADDING: 0px;<br />BORDER: medium none; /*不显示边框*/<br />LINE-HEIGHT: normal; <br />LIST-STYLE-TYPE: none;<br />}<br />#menu li {BORDER-TOP: #FFF 1px solid; MARGIN: 0px;} <br />#menu li a {<br />PADDING:5px 0px 5px 15px;<br />DISPLAY: block; <br />FONT-WEIGHT: bold; <br />BACKGROUND: url(attachments/month_0612/d2006122221544.gif) transparent no-repeat 2px 8px; <br />WIDTH: 100%; <br />COLOR: #444; <br />TEXT-DECORATION: none;<br />}<br />#menu li a:hover { BACKGROUND: url(attachments/month_0612/42006122221553.gif) #C61C18 no-repeat 2px 8px;<br />COLOR: #fff; } <br />--&gt;<br />&lt;/style&gt; <br />&nbsp;&lt;/head&gt;</font></p>
<p><font color="#c4573c">&nbsp;&lt;body&gt;<br />&lt;div id=&quot;menu&quot;&gt; <br />&lt;ul&gt;<br />&lt;li&gt;&lt;a title=&quot;网站标准&quot; href=&quot;</font><a href="http://www.yzci.com/webstandards.html"><font color="#c4573c">http://www.yzci.com/webstandards.html</font></a><font color="#c4573c">&quot;&gt;什么是网站标准&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a title=&quot;标准的好处&quot; href=&quot;</font><a href="http://www.yzci.com/benefits.html"><font color="#c4573c">http://www.yzci.com/benefits.html</font></a><font color="#c4573c">&quot;&gt;使用标准的好处&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a title=&quot;怎样过渡&quot; href=&quot;</font><a href="http://www.yzci.com/howto.html"><font color="#c4573c">http://www.yzci.com/howto.html</font></a><font color="#c4573c">&quot;&gt;怎样过渡&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a title=&quot;相关教程&quot; href=&quot;</font><a href="http://www.yzci.com/tutorial.html"><font color="#c4573c">http://www.yzci.com/tutorial.html</font></a><font color="#c4573c">&quot;&gt;相关教程&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a title=&quot;工具&quot; href=&quot;</font><a href="http://www.yzci.com/tools.html"><font color="#c4573c">http://www.yzci.com/tools.html</font></a><font color="#c4573c">&quot;&gt;工具&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a title=&quot;资源及链接&quot; href=&quot;</font><a href="http://www.yzci.com/resources.html"><font color="#c4573c">http://www.yzci.com/resources.html</font></a><font color="#c4573c">&quot;&gt;资源及链接&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;<br />&nbsp;&lt;/body&gt;<br />&lt;/html&gt;<br /><font color="#000000">通常方法我们至少嵌套2层表格来实现这样的菜单，间隔线采用在td中设置背景色并插入1px高的透明GIF图片实现；背景色的交替效果采用td的onmou<a class="channel_keylink" href="http://www.skinlm.com/blog/">seo</a>ver事件实现。但查看本菜单的页面代码，你会看到只有如下几句：</font><br />
<div class="UBBContent">&lt;div&nbsp;id=&quot;menu&quot;&gt;&nbsp;<br />&lt;ul&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;网站标准&quot;&nbsp;href=&quot;http://www.yzci.com/webstandards.html&quot;&gt;什么是网站标准&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;标准的好处&quot;&nbsp;href=&quot;http://www.yzci.com/benefits.html&quot;&gt;使用标准的好处&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;怎样过渡&quot;&nbsp;href=&quot;http://www.yzci.com/howto.html&quot;&gt;怎样过渡&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;相关教程&quot;&nbsp;href=&quot;http://www.yzci.com/tutorial.html&quot;&gt;相关教程&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;工具&quot;&nbsp;href=&quot;http://www.yzci.com/tools.html&quot;&gt;工具&lt;/a&gt;&lt;/li&gt;<br />&lt;li&gt;&lt;a&nbsp;title=&quot;资源及链接&quot;&nbsp;href=&quot;http://www.yzci.com/resources.html&quot;&gt;资源及链接&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;&nbsp;</div>
<div class="UBBContent"><font color="#000000">没有用任何table,而用的是无序列&lt;li&gt;，整个菜单的效果实现的秘密完全在于id=&quot;menu&quot;，我们再来看CSS中关于menu的定义：<br /><br />(1)首先定义了menu层的主要样式:</font><br />
<div class="UBBContent">#menu&nbsp;{<br />MARGIN:&nbsp;15px&nbsp;20px&nbsp;0px&nbsp;15px;&nbsp;&nbsp;/*定义层的外边框距离*/<br />PADDING:15px;&nbsp;&nbsp;&nbsp;&nbsp;/*定义层的内边框为15px*/<br />BACKGROUND:&nbsp;#dfdfdf;&nbsp;&nbsp;&nbsp;/*定义背景颜色*/<br />COLOR:&nbsp;#666;&nbsp;&nbsp;&nbsp;&nbsp;/*定义字体颜色*/<br />BORDER:#fff&nbsp;2px&nbsp;solid;&nbsp;&nbsp;/*定义边框为2px白色线条*/<br />WIDTH:160px;&nbsp;&nbsp;&nbsp;&nbsp;/*定义内容的宽度为160px*/<br />}&nbsp;</div>
<div class="UBBContent"><font color="#000000">2)其次定义无序列表的样式：</font></div>
<div class="UBBContent">
<div class="UBBContent">#menu&nbsp;ul&nbsp;{<br />MARGIN:&nbsp;0px;<br />PADDING:&nbsp;0px;<br />BORDER:&nbsp;medium&nbsp;none;&nbsp;/*不显示边框*/<br />LINE-HEIGHT:&nbsp;normal;&nbsp;<br />LIST-STYLE-TYPE:&nbsp;none;<br />}<br />#menu&nbsp;li&nbsp;{BORDER-TOP:&nbsp;#FFF&nbsp;1px&nbsp;solid;&nbsp;MARGIN:&nbsp;0px;}&nbsp;</div>
<div class="UBBContent">&nbsp;</div>
<div class="UBBContent"><font color="#000000">说明：这里用的是id选择器的派生方法定义(参考第7天：CSS入门的介绍)了在menu层中的子元素&lt;ul&gt;和&lt;li&gt;的样式。LIST-STYLE-TYPE:&nbsp;none一句表示不采用无序列表的默认样式，即：不显示小圆点（我们后面用自己的图标来代替小圆点）。BORDER-TOP:&nbsp;#FFF&nbsp;1px&nbsp;solid;则定义了菜单之间的1px间隔线。<br /><br />(3)定义onmou<a class="channel_keylink" href="http://www.skinlm.com/blog/">seo</a>ver效果<br />说明：这里用的是id选择器的派生方法定义(参考第7天：CSS入门的介绍)了在menu层中的子元素&lt;ul&gt;和&lt;li&gt;的样式。LIST-STYLE-TYPE:&nbsp;none一句表示不采用无序列表的默认样式，即：不显示小圆点（我们后面用自己的图标来代替小圆点）。BORDER-TOP:&nbsp;#FFF&nbsp;1px&nbsp;solid;则定义了菜单之间的1px间隔线。<br /><br />(3)定义onmou<a class="channel_keylink" href="http://www.skinlm.com/blog/">seo</a>ver效果<br /><font color="#f70909">menu&nbsp;li&nbsp;a&nbsp;{<br />PADDING:5px&nbsp;0px&nbsp;5px&nbsp;15px;<br />DISPLAY:&nbsp;block;&nbsp;<br />FONT-WEIGHT:&nbsp;bold;&nbsp;<br />BACKGROUND:&nbsp;url(attachments/month_0612/d2006122221544.gif)&nbsp;transparent&nbsp;no-repeat&nbsp;2px&nbsp;8px;&nbsp;<br />WIDTH:&nbsp;100%;&nbsp;<br />COLOR:&nbsp;#444;&nbsp;<br />TEXT-DECORATION:&nbsp;none;<br />}<br />#menu&nbsp;li&nbsp;a:hover&nbsp;{&nbsp;BACKGROUND:&nbsp;url(attachments/month_0612/42006122221553.gif)&nbsp;#C61C18&nbsp;no-repeat&nbsp;2px&nbsp;8px;<br />COLOR:&nbsp;#fff;&nbsp;}</font>&nbsp;</font></div>
<div class="UBBContent"><font color="#000000">解释如下：<br /><br />●&nbsp;&quot;display:block;&quot;表示将标签a当作块级元素来显示，使得链接变成一个按钮；&nbsp;<br />●&nbsp;&quot;BACKGROUND:&nbsp;url(attachments/month_0612/d2006122221544.gif)&nbsp;transparent&nbsp;no-repeat&nbsp;2px&nbsp;8px;&quot;这一句定义了替代li的小圆点的图标。&quot;transparent&quot;指背景为透明，&quot;2px&nbsp;8px&quot;指定图标的位置是距左边2px，距上边8px。这一句也可以拆分写成四句：&quot;BACKGROUND-IMAGE:&nbsp;url(attachments/month_0612/d2006122221544.gif);&nbsp;BACKGROUND-POSITION:&nbsp;2px&nbsp;8px;&nbsp;BACKGROUND-REPEAT:&nbsp;no-repeat;&nbsp;BACKGROUND-COLOR:&nbsp;transparent;&quot;&nbsp;<br />●&nbsp;&quot;#menu&nbsp;li&nbsp;a:hover&quot;定义了当鼠标移动到链接上以后的颜色变化和小图标变化。&nbsp;<br />ok，不用表格的菜单就这样实现了。大家可以明显感觉到，原来写在HTML里的表现样式全部剥离放到CSS文件里去了。页面代码节约了大半。通过CSS要修改菜单样式就很简单了。<br /><br /><strong>2.不用表格的菜单(横向)</strong><br /><br />上面是纵向的菜单,如果要显示横向菜单，用li也可以吗？当然是可以的，下面给出代码。<br />效果如下:</font></div>
<div class="UBBContent">&lt;html&gt;<br />&lt;head&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />&lt;!--<br />body,div {font-size:12px;}<br />#submenu { <br />MARGIN: 0px 8px 0px 8px; <br />PADDING: 4px 0px 0px 0px; <br />BORDER: #fff 1px solid; <br />BACKGROUND: #dfdfdf; <br />COLOR: #666; <br />HEIGHT:25px; } </div>
<div class="UBBContent">#submenu ul { <br />CLEAR: left; <br />MARGIN: 0px; <br />PADDING:0px; <br />BORDER: 0px; <br />LIST-STYLE-TYPE: none; <br />TEXT-ALIGN: center; <br />DISPLAY:inline;<br />} </div>
<div class="UBBContent">#submenu li { <br />FLOAT: left; <br />DISPLAY: block; <br />MARGIN: 0px; <br />PADDING: 0px; <br />TEXT-ALIGN: center} </div>
<div class="UBBContent">#submenu li a { <br />DISPLAY: block; <br />PADDING:2px 3px 2px 3px; <br />BACKGROUND: url(attachments/month_0612/d2006122221544.gif) transparent no-repeat 2px 8px; <br />FONT-WEIGHT: bold; <br />WIDTH: 100%; <br />COLOR: #444; <br />TEXT-DECORATION: none; <br />} </div>
<div class="UBBContent">#submenu li a:hover { <br />BACKGROUND: url(attachments/month_0612/42006122221553.gif) #C61C18 no-repeat 2px 8px; <br />COLOR: #fff; } </div>
<div class="UBBContent">#submenu ul li#one A { WIDTH: 60px} <br />#submenu ul li#two A { WIDTH: 80px} <br />#submenu ul li#three A { WIDTH: 80px} <br />#submenu ul li#four A { WIDTH: 90px} <br />#submenu ul li#five A { WIDTH: 80px} <br />#submenu ul li#six A { WIDTH: 80px} <br />#submenu ul li#seven A { WIDTH: 60px} <br />#submenu ul li#eight A { WIDTH: 90px} <br />#submenu ul li#nine A { WIDTH: 80px} <br />--&gt;<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div id=&quot;submenu&quot;&gt; <br />&lt;ul&gt;<br />&lt;li id=&quot;one&quot;&gt;&lt;a title=&quot;首页&quot; href=&quot;<a href="http://www.yzci.com/&quot;&gt;Home&lt;/a&gt;&lt;/li">http://www.yzci.com/&quot;&gt;Home&lt;/a&gt;&lt;/li</a>&gt;<br />&lt;li id=&quot;two&quot;&gt;&lt;a title=&quot;关于我们&quot; href=&quot;<a href="http://www.yzci.com/aboutus.html">http://www.yzci.com/aboutus.html</a>&quot;&gt;关于我们&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;three&quot;&gt;&lt;a title=&quot;网站标准&quot; href=&quot;<a href="http://www.yzci.com/webstandards.html">http://www.yzci.com/webstandards.html</a>&quot;&gt;网站标准&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;four&quot;&gt;&lt;a title=&quot;标准的好处&quot; href=&quot;<a href="http://www.yzci.com/benefits.html">http://www.yzci.com/benefits.html</a>&quot;&gt;标准的好处&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;five&quot;&gt;&lt;a title=&quot;怎样过渡&quot; href=&quot;<a href="http://www.yzci.com/howto.html">http://www.yzci.com/howto.html</a>&quot;&gt;怎样过渡&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;six&quot;&gt;&lt;a title=&quot;相关教程&quot; href=&quot;<a href="http://www.yzci.com/tutorial.html">http://www.yzci.com/tutorial.html</a>&quot;&gt;相关教程&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;seven&quot;&gt;&lt;a title=&quot;工具&quot; href=&quot;<a href="http://www.yzci.com/tools.html">http://www.yzci.com/tools.html</a>&quot;&gt;工具&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;eight&quot;&gt;&lt;a title=&quot;资源及链接&quot; href=&quot;<a href="http://www.yzci.com/resources.html">http://www.yzci.com/resources.html</a>&quot;&gt;资源及链接&lt;/a&gt;&lt;/li&gt;<br />&lt;li id=&quot;nine&quot;&gt;&lt;a title=&quot;常见问题&quot; href=&quot;<a href="http://www.yzci.com/faq.html">http://www.yzci.com/faq.html</a>&quot;&gt;常见问题&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt; <br />&lt;/body&gt;<br />&lt;/html&gt;</div>
<div class="UBBContent"><br /><font color="#000000">页面代码</font></div>
<div class="UBBContent">
<div class="UBBContent">&lt;div&nbsp;id=&quot;submenu&quot;&gt;&nbsp;<br />&lt;ul&gt;<br />&lt;li&nbsp;id=&quot;one&quot;&gt;&lt;a&nbsp;title=&quot;首页&quot;&nbsp;href=&quot;http://www.yzci.com/&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;two&quot;&gt;&lt;a&nbsp;title=&quot;关于我们&quot;&nbsp;href=&quot;http://www.yzci.com/aboutus.html&quot;&gt;关于我们&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;three&quot;&gt;&lt;a&nbsp;title=&quot;网站标准&quot;&nbsp;href=&quot;http://www.yzci.com/webstandards.html&quot;&gt;网站标准&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;four&quot;&gt;&lt;a&nbsp;title=&quot;标准的好处&quot;&nbsp;href=&quot;http://www.yzci.com/benefits.html&quot;&gt;标准的好处&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;five&quot;&gt;&lt;a&nbsp;title=&quot;怎样过渡&quot;&nbsp;href=&quot;http://www.yzci.com/howto.html&quot;&gt;怎样过渡&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;six&quot;&gt;&lt;a&nbsp;title=&quot;相关教程&quot;&nbsp;href=&quot;http://www.yzci.com/tutorial.html&quot;&gt;相关教程&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;seven&quot;&gt;&lt;a&nbsp;title=&quot;工具&quot;&nbsp;href=&quot;http://www.yzci.com/tools.html&quot;&gt;工具&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;eight&quot;&gt;&lt;a&nbsp;title=&quot;资源及链接&quot;&nbsp;href=&quot;http://www.yzci.com/resources.html&quot;&gt;资源及链接&lt;/a&gt;&lt;/li&gt;<br />&lt;li&nbsp;id=&quot;nine&quot;&gt;&lt;a&nbsp;title=&quot;常见问题&quot;&nbsp;href=&quot;http://www.yzci.com/faq.html&quot;&gt;常见问题&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/div&gt;&nbsp;</div>
<div class="UBBContent">&nbsp;</div>
<div class="UBBContent"><font color="#000000">样式表代码</font><br />
<div class="UBBContent">#submenu&nbsp;{&nbsp;<br />MARGIN:&nbsp;0px&nbsp;8px&nbsp;0px&nbsp;8px;&nbsp;<br />PADDING:&nbsp;4px&nbsp;0px&nbsp;0px&nbsp;0px;&nbsp;<br />BORDER:&nbsp;#fff&nbsp;1px&nbsp;solid;&nbsp;<br />BACKGROUND:&nbsp;#dfdfdf;&nbsp;<br />COLOR:&nbsp;#666;&nbsp;<br />HEIGHT:25px;&nbsp;}&nbsp;<br /><br />#submenu&nbsp;ul&nbsp;{&nbsp;<br />CLEAR:&nbsp;left;&nbsp;<br />MARGIN:&nbsp;0px;&nbsp;<br />PADDING:0px;&nbsp;<br />BORDER:&nbsp;0px;&nbsp;<br />LIST-STYLE-TYPE:&nbsp;none;&nbsp;<br />TEXT-ALIGN:&nbsp;center;&nbsp;<br />DISPLAY:inline;<br />}&nbsp;<br /><br />#submenu&nbsp;li&nbsp;{&nbsp;<br />FLOAT:&nbsp;left;&nbsp;<br />DISPLAY:&nbsp;block;&nbsp;<br />MARGIN:&nbsp;0px;&nbsp;<br />PADDING:&nbsp;0px;&nbsp;<br />TEXT-ALIGN:&nbsp;center}&nbsp;<br /><br />#submenu&nbsp;li&nbsp;a&nbsp;{&nbsp;<br />DISPLAY:&nbsp;block;&nbsp;<br />PADDING:2px&nbsp;3px&nbsp;2px&nbsp;3px;&nbsp;<br />BACKGROUND:&nbsp;url(attachments/month_0612/d2006122221544.gif)&nbsp;transparent&nbsp;no-repeat&nbsp;2px&nbsp;8px;&nbsp;<br />FONT-WEIGHT:&nbsp;bold;&nbsp;<br />WIDTH:&nbsp;100%;&nbsp;<br />COLOR:&nbsp;#444;&nbsp;<br />TEXT-DECORATION:&nbsp;none;&nbsp;<br />}&nbsp;<br /><br />#submenu&nbsp;li&nbsp;a:hover&nbsp;{&nbsp;<br />BACKGROUND:&nbsp;url(attachments/month_0612/42006122221553.gif)&nbsp;#C61C18&nbsp;no-repeat&nbsp;2px&nbsp;8px;&nbsp;<br />COLOR:&nbsp;#fff;&nbsp;}&nbsp;<br /><br />#submenu&nbsp;ul&nbsp;li#one&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;60px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#two&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;80px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#three&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;80px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#four&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;90px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#five&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;80px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#six&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;80px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#seven&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;60px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#eight&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;90px}&nbsp;<br />#submenu&nbsp;ul&nbsp;li#nine&nbsp;A&nbsp;{&nbsp;WIDTH:&nbsp;80px}&nbsp;</div>
<div class="UBBContent"><font color="#000000">以上代码不逐一分析了。横向菜单的关键在于：定义&lt;li&gt;样式时的&quot;FLOAT:&nbsp;left;&quot;语句。另外注意UL定义中的DISPLAY:inline;一句表示将li强制作为内联对象呈递，从对象中删除行，通俗讲就是li不换行。实现横向排列。你也可以象例子中定义每个子菜单的宽度，控制菜单的间隔。好了，你也可以动手试试，用li实现各种各样的菜单样式。<br /><br />Tips:如果你子菜单的宽度总和大于层的宽度，菜单会自动折行，利用这个原理可以实现单个无序列表的2列或者3列排版，这是原来HTML很难实现的。<img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309190154457.gif" border="0" /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309190154624.gif" border="0" /></font> <!--em336tj start--><!--em336tj end--></div>
</div>
</div>
</div>
</div>
</font></p>
<center></center></div>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/927.htm</link>
			<title><![CDATA[十二天学会DIV+CSS之第十天]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,02 Jul 2008 11:26:25 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=927</guid>
		<description><![CDATA[<p>第十天&nbsp;自适应高度</p>
<p>如果我们想在3列布局的最后加一行页脚，放版权之类的信息。就遇到必须对齐3列底部的问题。在table布局中，我们用大表格嵌套小表格的方法，可以很方便对齐三列；而用div布局，三列独立分散，内容高低不同，就很难对齐。其实我们完全可以嵌套div，把三列放进一个DIV中，就做到了底部对齐。下面是实现例子(白色背景框模拟一个页面)：<br /><br /></p>
<div class="UBBContent"><font color="#ff0000">http://www.yzci.com/<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;style&nbsp;type=&quot;text/css&quot;&gt;<br />#body,div{FONT-SIZE:12px;}<br />#pagebox{<br />margin:0px;<br />PADDING:20px;<br />BACKGROUND:&nbsp;#FFF;<br />FONT-FAMILY:&nbsp;arial,'宋体','新宋体',verdana,sans-serif;<br />WIDTH:600px;<br />}<br />#header{<br />MARGIN:&nbsp;0px;<br />BORDER:&nbsp;0px;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;&nbsp;&nbsp;<br />WIDTH:&nbsp;580px;&nbsp;&nbsp;<br />HEIGHT:&nbsp;60px;}<br />#mainbox&nbsp;{<br />MARGIN:&nbsp;0px;&nbsp;<br />WIDTH:&nbsp;580px;<br />BACKGROUND:&nbsp;#FFF;&nbsp;<br />}<br />#menu{<br />FLOAT:&nbsp;right;<br />MARGIN:&nbsp;2px&nbsp;0px&nbsp;2px&nbsp;0px;<br />PADDING:0px&nbsp;0px&nbsp;0px&nbsp;0px;<br />WIDTH:&nbsp;400px;&nbsp;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;<br />}<br />#content{<br />FLOAT:&nbsp;right;&nbsp;<br />MARGIN:&nbsp;1px&nbsp;0px&nbsp;2px&nbsp;0px;&nbsp;<br />PADDING:0px;<br />WIDTH:&nbsp;400px;<br />BACKGROUND:&nbsp;#E0EFDE;}<br />#sidebar{<br />FLOAT:&nbsp;left;<br />MARGIN:&nbsp;2px&nbsp;2px&nbsp;0px&nbsp;0px;<br />PADDING:&nbsp;0px;&nbsp;<br />BACKGROUND:&nbsp;#F2F3F7;&nbsp;<br />&nbsp;WIDTH:&nbsp;170px;&nbsp;<br />}<br />#footer{<br />CLEAR:&nbsp;both;&nbsp;<br />MARGIN:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;0px;<br />PADDING:&nbsp;5px&nbsp;0px&nbsp;5px&nbsp;0px;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;<br />HEIGHT:&nbsp;40px;<br />WIDTH:&nbsp;580px;<br />}<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div&nbsp;id=&quot;header&quot;&gt;这里是#header{<br />MARGIN:&nbsp;0px;<br />BORDER:&nbsp;0px;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;&nbsp;&nbsp;<br />WIDTH:&nbsp;580px;&nbsp;&nbsp;<br />HEIGHT:&nbsp;60px;}&lt;/div&gt;<br />&lt;div&nbsp;id=&quot;mainbox&quot;&gt;<br />这里是#mainbox&nbsp;{<br />MARGIN:&nbsp;0px;&nbsp;<br />WIDTH:&nbsp;580px;<br />BACKGROUND:&nbsp;#FFF;&nbsp;<br />}包含了#menu,#sidebar和#content<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;menu&quot;&gt;这里是#menu{<br />FLOAT:&nbsp;right;<br />MARGIN:&nbsp;2px&nbsp;0px&nbsp;2px&nbsp;0px;<br />PADDING:0px&nbsp;0px&nbsp;0px&nbsp;0px;<br />WIDTH:&nbsp;400px;&nbsp;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;<br />}&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;sidebar&quot;&gt;&lt;p&gt;这里是#sidebar{<br />FLOAT:&nbsp;left;<br />MARGIN:&nbsp;2px&nbsp;2px&nbsp;0px&nbsp;0px;<br />PADDING:&nbsp;0px;&nbsp;<br />BACKGROUND:&nbsp;#F2F3F7;&nbsp;<br />&nbsp;WIDTH:&nbsp;170px;&nbsp;<br />}，背景颜色用的是#main的背景色&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;content&quot;&gt;&lt;p&gt;这里是#content{<br />FLOAT:&nbsp;right;&nbsp;<br />MARGIN:&nbsp;1px&nbsp;0px&nbsp;2px&nbsp;0px;&nbsp;<br />PADDING:0px;<br />WIDTH:&nbsp;400px;<br />BACKGROUND:&nbsp;#E0EFDE;}&lt;/p&gt;<br />&lt;p&gt;这里是主要内容，根据内容自动适应高度&lt;/p&gt;&lt;p&gt;这里是主要内容，根据内容自动适应高度&lt;/p&gt;<br />&lt;p&gt;这里是主要内容，根据内容自动适应高度&lt;/p&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div&nbsp;id=&quot;footer&quot;&gt;这里是#footer{<br />CLEAR:&nbsp;both;&nbsp;<br />MARGIN:&nbsp;0px&nbsp;0px&nbsp;0px&nbsp;0px;<br />PADDING:&nbsp;5px&nbsp;0px&nbsp;5px&nbsp;0px;<br />BACKGROUND:&nbsp;#ccd2de;&nbsp;<br />HEIGHT:&nbsp;40px;<br />WIDTH:&nbsp;580px;<br />}。&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /></font></div>
<div class="UBBContent"><font color="#ff0000"></font>&nbsp;</div>
<div class="UBBContent"><font color="#ff0000">&lt;html&gt;<br />&lt;head&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />#body,div{FONT-SIZE:12px;}<br />#pagebox{<br />margin:0px;<br />PADDING:20px;<br />BACKGROUND: #FFF;<br />FONT-FAMILY: arial,'宋体','新宋体',verdana,sans-serif;<br />WIDTH:600px;<br />}<br />#header{<br />MARGIN: 0px;<br />BORDER: 0px;<br />BACKGROUND: #ccd2de;&nbsp;&nbsp; <br />WIDTH: 580px;&nbsp; <br />HEIGHT: 60px;}<br />#mainbox {<br />MARGIN: 0px; <br />WIDTH: 580px;<br />BACKGROUND: #FFF; <br />}<br />#menu{<br />FLOAT: right;<br />MARGIN: 2px 0px 2px 0px;<br />PADDING:0px 0px 0px 0px;<br />WIDTH: 400px; <br />BACKGROUND: #ccd2de; <br />}<br />#content{<br />FLOAT: right; <br />MARGIN: 1px 0px 2px 0px; <br />PADDING:0px;<br />WIDTH: 400px;<br />BACKGROUND: #E0EFDE;}<br />#sidebar{<br />FLOAT: left;<br />MARGIN: 2px 2px 0px 0px;<br />PADDING: 0px; <br />BACKGROUND: #F2F3F7; <br />&nbsp;WIDTH: 170px; <br />}<br />#footer{<br />CLEAR: both; <br />MARGIN: 0px 0px 0px 0px;<br />PADDING: 5px 0px 5px 0px;<br />BACKGROUND: #ccd2de; <br />HEIGHT: 40px;<br />WIDTH: 580px;<br />}<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div id=&quot;header&quot;&gt;这里是#header{<br />MARGIN: 0px;<br />BORDER: 0px;<br />BACKGROUND: #ccd2de;&nbsp;&nbsp; <br />WIDTH: 580px;&nbsp; <br />HEIGHT: 60px;}&lt;/div&gt;<br />&lt;div id=&quot;mainbox&quot;&gt;<br />这里是#mainbox {<br />MARGIN: 0px; <br />WIDTH: 580px;<br />BACKGROUND: #FFF; <br />}包含了#menu,#sidebar和#content<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;menu&quot;&gt;这里是#menu{<br />FLOAT: right;<br />MARGIN: 2px 0px 2px 0px;<br />PADDING:0px 0px 0px 0px;<br />WIDTH: 400px; <br />BACKGROUND: #ccd2de; <br />}&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;sidebar&quot;&gt;&lt;p&gt;这里是#sidebar{<br />FLOAT: left;<br />MARGIN: 2px 2px 0px 0px;<br />PADDING: 0px; <br />BACKGROUND: #F2F3F7; <br />&nbsp;WIDTH: 170px; <br />}，背景颜色用的是#main的背景色&lt;/p&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;content&quot;&gt;&lt;p&gt;这里是#content{<br />FLOAT: right; <br />MARGIN: 1px 0px 2px 0px; <br />PADDING:0px;<br />WIDTH: 400px;<br />BACKGROUND: #E0EFDE;}&lt;/p&gt;<br />&lt;p&gt;这里是主要内容，根据内容自动适应高度&lt;/p&gt;&lt;p&gt;这里是主要内容，根据内容自动适应高度&lt;/p&gt;<br />&lt;p&gt;这里是主要内容，<a href="http://www.yzci.com/&lt;/p">http://www.yzci.com/&lt;/p</a>&gt;<br />&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div id=&quot;footer&quot;&gt;这里是#footer{<br />CLEAR: both; <br />MARGIN: 0px 0px 0px 0px;<br />PADDING: 5px 0px 5px 0px;<br />BACKGROUND: #ccd2de; <br />HEIGHT: 40px;<br />WIDTH: 580px;<br />}。&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br /><font color="#000000">这个例子的页面主要代码如下：</font></font></div>
<div class="UBBContent"><font color="#ff0000">
<div class="UBBContent">&lt;div&nbsp;id=&quot;header&quot;&gt;&lt;/div&gt;<br />&lt;div&nbsp;id=&quot;mainbox&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;menu&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;sidebar&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;div&nbsp;id=&quot;content&quot;&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div&nbsp;id=&quot;footer&quot;&gt;&lt;/div&gt;</div>
<div class="UBBContent"><font color="#000000">具体样式表都写在相应版块里了。重点在于#mainbox层嵌套了#menu,#sidebar和#content三个层。当#content的内容增加，#content的高度就会增高，同时#mainbox的高度也会撑开，#footer层就自动下移。这样就实现了高度的自适应。<br /><br />另外值得注意的是：#menu和#content都是浮动在页面右面&quot;FLOAT:&nbsp;right;&quot;,#sidebar是浮动在#menu层的左面&quot;FLOAT:&nbsp;left;&quot;，这是浮动法定位，还可以采用绝对定位来实现这样的效果。<br /><br />这个方法存在另一个问题，就是侧列#sidebar的背景无法百分之百。一般的解决办法就是用body的背景色来填充满。(不能使用#mainbox的背景色，因为在Mozilla等浏览器中#mainbox的背景色失效。)<br /><br />好了，主要的框架已经搭建完毕,剩下的工作只是往里面添砖加瓦。<br /></font></div>
</font></div>]]></description>
		</item>
		
			<item>
			<link>http://www.zhouyuming.com/article/zhishi/926.htm</link>
			<title><![CDATA[十二天学会DIV+CSS之第九天]]></title>
			<author>zhouyuming@vip.sina.com(石血)</author>
			<category><![CDATA[技术文章]]></category>
			<pubDate>Wed,02 Jul 2008 11:23:35 +0800</pubDate>
			<guid>http://www.zhouyuming.com/default.asp?id=926</guid>
		<description><![CDATA[<div id="fontzoom" style="WORD-BREAK: break-all">接下来开始要真正设计布局了。和传统的方法一样，你首先要在脑海里有大致的轮廓构想，然后用photoshop把它画出来。你可能看到有关web标准的站点大都很朴素，因为web标准更关注结构和内容，实际上它与网页的美观没有根本冲突，你想怎么设计就怎么设计，用传统表格方法实现的布局，用DIV也可以实现。技术有一个成熟的过程，把DIV看成和TABLE一样的工具，如何运用就看你的想象力了。<br />注：在实际应用过程中，DIV在有些地方的确不如表格方便，比如背景色的定义。但任何事情都有得有失，取舍在于你的价值判断。好，不罗嗦了，我们开始：<br /><br /><strong>1.确定布局</strong><br />w3cn的最初设计草图如下：<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309185149842.gif" border="0" /><br />用表格的设计方法的话，一般都是上中下三行布局。<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309185149159.gif" border="0" /><br />用DIV的话，我考虑使用三列来布局,成为这样<br /><img alt="" src="http://www.skinlm.com/Article/UploadFiles/200803/20080309185150439.gif" border="0" /><br /><br /><strong>2.定义body样式</strong><br />先定义整个页面的body的样式,代码如下：<br />
<div class="UBBContent"><font color="#ff0000">body&nbsp;{&nbsp;MARGIN:&nbsp;0px;<br />PADDING:&nbsp;0px;&nbsp;<br />BACKGROUND:&nbsp;url(../images/bg_logo.gif)&nbsp;#FEFEFE&nbsp;no-repeat&nbsp;right&nbsp;bottom;<br />FONT-FAMILY:&nbsp;'Lucida&nbsp;Grande','Lucida&nbsp;Sans&nbsp;Unicode','宋体','新宋体',arial,verdana,sans-serif;<br />COLOR:&nbsp;#666;<br />FONT-SIZE:12px;<br />LINE-HEIGHT:150%;&nbsp;}</font>&nbsp;</div>
<div class="UBBContent">以上代码的作用在上一天的教程有详细说明，大家应该一看就明白。定义了边框边距为0；背景颜色为#FEFEFE，背景图片为bg_logo.gif，图片位于页面右下角，不重复；定义了字体尺寸为12px；字体颜色为#666;行高150%。<br /><br /><strong>3.定义主要的div</strong><br />初次使用CSS布局，我决定采用固定宽度的三列布局(比自适应分辨率的设计简单,hoho，别说我偷懒，先实现简单的，增加点信心嘛！)。分别定义左中右的宽度为200:300:280，在CSS中如下定义:<br />
<div class="UBBContent"><font color="#ee3d11">/*定义页面左列样式*/<br />#left{&nbsp;WIDTH:200px;<br />MARGIN:&nbsp;0px;<br />PADDING:&nbsp;0px;<br />BACKGROUND:&nbsp;#CDCDCD;<br />}<br />/*定义页面中列样式*/<br />#middle{&nbsp;POSITION:&nbsp;absolute;<br />LEFT:200px;<br />TOP:0px;<br />WIDTH:300px;<br />MARGIN:&nbsp;0px;<br />PADDING:&nbsp;0px;<br />BACKGROUND:&nbsp;#DADADA;<br />}<br />/*定义页面右列样式*/<br />#right{&nbsp;POSITION:&nbsp;absolute;<br />LEFT:500px;<br />TOP:0px;<br />WIDTH:280px;<br />MARGIN:&nbsp;0px;<br />PADDING:&nbsp;0px;<br />BACKGROUND:&nbsp;#FFF;&nbsp;}</font>&nbsp;</div>
<div class="UBBContent">&nbsp;</div>
<div class="UBBContent">注意：定义中列和右列div我都采用了POSITION:&nbsp;absolute;，然后分别定义了LEFT:200px;TOP:0px;和LEFT:500px;TOP:0px;这是这个布局的关键，我采用了层的绝对定位。定义中间列距离页面左边框200px，距离顶部0px；定义右列距离页面左边框500px，距离顶部0px；。<br /><br />这时候整个页面的代码是：<br /><font color="#ff0000">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;</font><a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><font color="#ff0000">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</font></a><font color="#ff0000">&quot;&gt;<br />&lt;html xmlns=&quot;</font><a href="http://www.w3.org/1999/xhtml"><font color="#ff0000">http://www.w3.org/1999/xhtml</font></a><font color="#ff0000">&quot; lang=&quot;gb2312&quot;&gt;<br />&lt;head&gt;<br />&lt;title&gt;欢迎进入新《网页设计师》:web标准教程及推广&lt;/title&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br />&lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;gb2312&quot; /&gt;<br />&lt;meta content=&quot;all&quot; name=&quot;robots&quot; /&gt;<br />&lt;meta name=&quot;author&quot; content=&quot;ajie(at)netease.com,阿捷&quot; /&gt;<br />&lt;meta name=&quot;Copyright&quot; content=&quot;</font><a href="http://www.yzci.com/"><font color="#ff0000">www.yzci.com</font></a><font color="#ff0000">,自由版权,任意转载&quot; /&gt;<br />&lt;meta name=&quot;description&quot; content=&quot;新网页设计师,web标准的教程站点,推动web标准在中国的应用.&quot; /&gt;<br />&lt;meta content=&quot;web标准,教程,web, standards, xhtml, css, usability, accessibility&quot; name=&quot;keywords&quot; /&gt;<br />&lt;link rel=&quot;icon&quot; href=&quot;/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;<br />&lt;link rel=&quot;shortcut icon&quot; href=&quot;</font><a href="http://www.yzci.com/favicon.ico"><font color="#ff0000">http://www.yzci.com/favicon.ico</font></a><font color="#ff0000">&quot; type=&quot;image/x-icon&quot; /&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />&lt;!--<br />body { MARGIN: 0px;<br />PADDING: 0px; <br />BACKGROUND: url(../images/bg_logo.gif) #FEFEFE no-repeat right bottom;<br />FONT-FAMILY: 'Lucida Grande','Lucida Sans Unicode','宋体','新宋体',arial,verdana,sans-serif;<br />COLOR: #666;<br />FONT-SIZE:12px;<br />LINE-HEIGHT:150%; }<br />/*定义页面左列样式*/<br />#left{ WIDTH:200px;<br />MARGIN: 0px;<br />PADDING: 0px;<br />BACKGROUND: #CDCDCD;<br />}<br />/*定义页面中列样式*/<br />#middle{ POSITION: absolute;<br />LEFT:200px;<br />TOP:0px;<br />WIDTH:300px;<br />MARGIN: 0px;<br />PADDING: 0px;<br />BACKGROUND: #DADADA;<br />}<br />/*定义页面右列样式*/<br />#right{ POSITION: absolute;<br />LEFT:500px;<br />TOP:0px;<br />WIDTH:280px;<br />MARGIN: 0px;<br />PADDING: 0px;<br />BACKGROUND: #FFF; } <br />--&gt;<br />&lt;/style&gt; </font></div>
<div class="UBBContent"><font color="#ff0000">&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div id=&quot;left&quot;&gt;页面左列&lt;/div&gt;<br />&lt;div id=&quot;middle&quot;&gt;页面中列&lt;/div&gt;<br />&lt;div id=&quot;right&quot;&gt;页面右列&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt; <br /><font color="#000000">这时候页面的效果仅仅可以看到三个并列的灰色矩形，和一个背景图。但是我希望高度是满屏的，怎么办呢？<br /><br /><strong>4.100%自适应高度?</strong><br />为了保持三列有同样的高度，我尝试在#left、#middle和#right中设置&quot;height:100%;&quot;，但发现完全没有预想的自适应高度效果。经过一番尝试后，我只好给每个div一个绝对高度:&quot;height:1000px;&quot;，并且随着内容的增加，需要不断修正这个值。难道没有办法自适应高度了吗？随着阿捷自己学习的深入，发现一个变通的解决办法，实际上根本不需要设置100%，我们已经被table思维禁锢太深了，这个办法在下一节的学习中详细介绍。</font><br /></font></div>
</div>
<center></center></div>]]></description>
		</item>
		
</channel>
</rss>
