<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="skins/JinnStyleV1/article.xslt"?><blog view="695225" processed="0.088" queries="8" focusMarkup="" xslt="skins/JinnStyleV1/article.xslt"><panels><panel id="1" sn="0" sys="true"><name>Blog Main</name><content><article id="120" disComm="false"><title>使用Web标准建站第9天:CSS布局入门</title><category id="26"><name>网络开发</name><icon>images/icons/14.gif</icon></category><content><![CDATA[&#12288;&#12288;&#25509;&#19979;&#26469;&#24320;&#22987;&#35201;&#30495;&#27491;&#35774;&#35745;&#24067;&#23616;&#20102;&#12290;&#21644;&#20256;&#32479;&#30340;&#26041;&#27861;&#19968;&#26679;&#65292;&#20320;&#39318;&#20808;&#35201;&#22312;&#33041;&#28023;&#37324;&#26377;&#22823;&#33268;&#30340;&#36718;&#24275;&#26500;&#24819;&#65292;&#28982;&#21518;&#29992;photoshop&#25226;&#23427;&#30011;&#20986;&#26469;&#12290;&#20320;&#21487;&#33021;&#30475;&#21040;&#26377;&#20851;web&#26631;&#20934;&#30340;&#31449;&#28857;&#22823;&#37117;&#24456;&#26420;&#32032;&#65292;&#22240;&#20026;web&#26631;&#20934;&#26356;&#20851;&#27880;&#32467;&#26500;&#21644;&#20869;&#23481;&#65292;&#23454;&#38469;&#19978;&#23427;&#19982;&#32593;&#39029;&#30340;&#32654;&#35266;&#27809;&#26377;&#26681;&#26412;&#20914;&#31361;&#65292;&#20320;&#24819;&#24590;&#20040;&#35774;&#35745;&#23601;&#24590;&#20040;&#35774;&#35745;&#65292;&#29992;&#20256;&#32479;&#34920;&#26684;&#26041;&#27861;&#23454;&#29616;&#30340;&#24067;&#23616;&#65292;&#29992;DIV&#20063;&#21487;&#20197;&#23454;&#29616;&#12290;&#25216;&#26415;&#26377;&#19968;&#20010;&#25104;&#29087;&#30340;&#36807;&#31243;&#65292;&#25226;DIV&#30475;&#25104;&#21644;TABLE&#19968;&#26679;&#30340;&#24037;&#20855;&#65292;&#22914;&#20309;&#36816;&#29992;&#23601;&#30475;&#20320;&#30340;&#24819;&#35937;&#21147;&#20102;&#12290; <br /><br />&#12288;&#12288;&#27880;&#65306;&#22312;&#23454;&#38469;&#24212;&#29992;&#36807;&#31243;&#20013;&#65292;DIV&#22312;&#26377;&#20123;&#22320;&#26041;&#30340;&#30830;&#19981;&#22914;&#34920;&#26684;&#26041;&#20415;&#65292;&#27604;&#22914;&#32972;&#26223;&#33394;&#30340;&#23450;&#20041;&#12290;&#20294;&#20219;&#20309;&#20107;&#24773;&#37117;&#26377;&#24471;&#26377;&#22833;&#65292;&#21462;&#33293;&#22312;&#20110;&#20320;&#30340;&#20215;&#20540;&#21028;&#26029;&#12290;&#22909;&#65292;&#19981;&#32599;&#21990;&#20102;&#65292;&#25105;&#20204;&#24320;&#22987;&#65306; <br /><br />1.&#30830;&#23450;&#24067;&#23616; <br />&#12288;&#12288;w3cn&#30340;&#26368;&#21021;&#35774;&#35745;&#33609;&#22270;&#22914;&#19979;&#65306;<br /><img src='attachments/2008_10_14_21_33_30_12.jpg' border='0' /><br /><br />&#12288;&#12288;&#29992;&#34920;&#26684;&#30340;&#35774;&#35745;&#26041;&#27861;&#30340;&#35805;&#65292;&#19968;&#33324;&#37117;&#26159;&#19978;&#20013;&#19979;&#19977;&#34892;&#24067;&#23616;&#12290;<br /><img src='attachments/2008_10_14_21_33_35_13.jpg' border='0' /><br /><br />&#29992;DIV&#30340;&#35805;&#65292;&#25105;&#32771;&#34385;&#20351;&#29992;&#19977;&#21015;&#26469;&#24067;&#23616;,&#25104;&#20026;&#36825;&#26679;&#12290;<br /><img src='attachments/2008_10_14_21_33_39_14.jpg' border='0' /><br /><br />2.&#23450;&#20041;body&#26679;&#24335; <br />&#12288;&#12288;&#20808;&#23450;&#20041;&#25972;&#20010;&#39029;&#38754;&#30340;body&#30340;&#26679;&#24335;,&#20195;&#30721;&#22914;&#19979;&#65306;<br /><textarea name='code' class='css' cols='50'>body {
	MARGIN: 0px; 
	PADDING: 0px; 
	BACKGROUND: url(../images/bg_logo.gif) #FEFEFE no-repeat right bottom; 
	FONT-FAMILY: 'Lucida Grande','Lucida Sans Unicode','&#23435;&#20307;','&#26032;&#23435;&#20307;',arial,verdana,sans-serif; 
	COLOR: #666; 
	FONT-SIZE:12px; 
	LINE-HEIGHT:150%;
}</textarea><br />&#12288;&#12288;&#20197;&#19978;&#20195;&#30721;&#30340;&#20316;&#29992;&#22312;&#19978;&#19968;&#22825;&#30340;&#25945;&#31243;&#26377;&#35814;&#32454;&#35828;&#26126;&#65292;&#22823;&#23478;&#24212;&#35813;&#19968;&#30475;&#23601;&#26126;&#30333;&#12290;&#23450;&#20041;&#20102;&#36793;&#26694;&#36793;&#36317;&#20026;0&#65307;&#32972;&#26223;&#39068;&#33394;&#20026;#FEFEFE&#65292;&#32972;&#26223;&#22270;&#29255;&#20026;bg_logo.gif&#65292;&#22270;&#29255;&#20301;&#20110;&#39029;&#38754;&#21491;&#19979;&#35282;&#65292;&#19981;&#37325;&#22797;&#65307;&#23450;&#20041;&#20102;&#23383;&#20307;&#23610;&#23544;&#20026;12px&#65307;&#23383;&#20307;&#39068;&#33394;&#20026;#666;&#34892;&#39640;150%&#12290; <br /><br />3.&#23450;&#20041;&#20027;&#35201;&#30340;div <br />&#12288;&#12288;&#21021;&#27425;&#20351;&#29992;CSS&#24067;&#23616;&#65292;&#25105;&#20915;&#23450;&#37319;&#29992;&#22266;&#23450;&#23485;&#24230;&#30340;&#19977;&#21015;&#24067;&#23616;(&#27604;&#33258;&#36866;&#24212;&#20998;&#36776;&#29575;&#30340;&#35774;&#35745;&#31616;&#21333;,hoho&#65292;&#21035;&#35828;&#25105;&#20599;&#25042;&#65292;&#20808;&#23454;&#29616;&#31616;&#21333;&#30340;&#65292;&#22686;&#21152;&#28857;&#20449;&#24515;&#22043;&#65281;)&#12290;&#20998;&#21035;&#23450;&#20041;&#24038;&#20013;&#21491;&#30340;&#23485;&#24230;&#20026;200:300:280&#65292;&#22312;CSS&#20013;&#22914;&#19979;&#23450;&#20041;:<br /><textarea name='code' class='css' cols='50'>/*&#23450;&#20041;&#39029;&#38754;&#24038;&#21015;&#26679;&#24335;*/ 
#left{
	WIDTH: 200px; 
	MARGIN: 0px; 
	PADDING: 0px; 
	BACKGROUND: #CDCDCD; 
} 
/*&#23450;&#20041;&#39029;&#38754;&#20013;&#21015;&#26679;&#24335;*/ 
#middle{
	POSITION: absolute; 
	LEFT: 200px; 
	TOP:0px; 
	WIDTH:300px; 
	MARGIN: 0px; 
	PADDING: 0px; 
	BACKGROUND: #DADADA; 
} 
/*&#23450;&#20041;&#39029;&#38754;&#21491;&#21015;&#26679;&#24335;*/ 
#right{
	POSITION: absolute; 
	LEFT:500px; 
	TOP:0px; 
	WIDTH:280px; 
	MARGIN: 0px; 
	PADDING: 0px; 
	BACKGROUND: #FFF;
}</textarea> <br />&#12288;&#12288;&#27880;&#24847;&#65306;&#23450;&#20041;&#20013;&#21015;&#21644;&#21491;&#21015;div&#25105;&#37117;&#37319;&#29992;&#20102;POSITION: absolute;&#65292;&#28982;&#21518;&#20998;&#21035;&#23450;&#20041;&#20102;LEFT:200px;TOP:0px;&#21644;LEFT:500px;TOP:0px;&#36825;&#26159;&#36825;&#20010;&#24067;&#23616;&#30340;&#20851;&#38190;&#65292;&#25105;&#37319;&#29992;&#20102;&#23618;&#30340;&#32477;&#23545;&#23450;&#20301;&#12290;&#23450;&#20041;&#20013;&#38388;&#21015;&#36317;&#31163;&#39029;&#38754;&#24038;&#36793;&#26694;200px&#65292;&#36317;&#31163;&#39030;&#37096;0px&#65307;&#23450;&#20041;&#21491;&#21015;&#36317;&#31163;&#39029;&#38754;&#24038;&#36793;&#26694;500px&#65292;&#36317;&#31163;&#39030;&#37096;0px&#65307;&#12290; <br /><br />&#12288;&#12288;&#36825;&#26102;&#20505;&#25972;&#20010;&#39029;&#38754;&#30340;&#20195;&#30721;&#26159;&#65306; <br /><textarea name='code' class='xml' cols='50'>&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; lang=&quot;gb2312&quot;&gt; 
  &lt;head&gt; 
    &lt;title&gt;&#27426;&#36814;&#36827;&#20837;&#26032;&#12298;&#32593;&#39029;&#35774;&#35745;&#24072;&#12299;:web&#26631;&#20934;&#25945;&#31243;&#21450;&#25512;&#24191;&lt;/title&gt; 
    &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt; 
    &lt;meta http-equiv=&quot;Content-Language&quot; content=&quot;gb2312&quot; /&gt; 
    &lt;meta content=&quot;all&quot; name=&quot;robots&quot; /&gt; 
    &lt;meta name=&quot;author&quot; content=&quot;ajie(at)netease.com,&#38463;&#25463;&quot; /&gt; 
    &lt;meta name=&quot;Copyright&quot; content=&quot;www.w3cn.org,&#33258;&#30001;&#29256;&#26435;,&#20219;&#24847;&#36716;&#36733;&quot; /&gt; 
    &lt;meta name=&quot;description&quot; content=&quot;&#26032;&#32593;&#39029;&#35774;&#35745;&#24072;,web&#26631;&#20934;&#30340;&#25945;&#31243;&#31449;&#28857;,&#25512;&#21160;web&#26631;&#20934;&#22312;&#20013;&#22269;&#30340;&#24212;&#29992;.&quot; /&gt; 
    &lt;meta content=&quot;web&#26631;&#20934;,&#25945;&#31243;,web, standards, xhtml, css, usability, accessibility&quot; name=&quot;keywords&quot; /&gt; 
    &lt;link rel=&quot;icon&quot; href=&quot;/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt; 
    &lt;link rel=&quot;shortcut icon&quot; href=&quot;http://www.w3cn.org/favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt; 
    &lt;link rel=&quot;stylesheet&quot; rev=&quot;stylesheet&quot; href=&quot;css/style01.css&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt; 
  &lt;/head&gt; 
  &lt;body&gt; 
    &lt;div id=&quot;left&quot;&gt;&#39029;&#38754;&#24038;&#21015;&lt;/div&gt; 
    &lt;div id=&quot;middle&quot;&gt;&#39029;&#38754;&#20013;&#21015;&lt;/div&gt; 
    &lt;div id=&quot;right&quot;&gt;&#39029;&#38754;&#21491;&#21015;&lt;/div&gt; 
  &lt;/body&gt; 
&lt;/html&gt;</textarea><br />&#12288;&#12288;&#36825;&#26102;&#20505;&#39029;&#38754;&#30340;&#25928;&#26524;&#20165;&#20165;&#21487;&#20197;&#30475;&#21040;&#19977;&#20010;&#24182;&#21015;&#30340;&#28784;&#33394;&#30697;&#24418;&#65292;&#21644;&#19968;&#20010;&#32972;&#26223;&#22270;&#12290;&#20294;&#26159;&#25105;&#24076;&#26395;&#39640;&#24230;&#26159;&#28385;&#23631;&#30340;&#65292;&#24590;&#20040;&#21150;&#21602;&#65311; <br /><br />4.100%&#33258;&#36866;&#24212;&#39640;&#24230;? <br />&#12288;&#12288;&#20026;&#20102;&#20445;&#25345;&#19977;&#21015;&#26377;&#21516;&#26679;&#30340;&#39640;&#24230;&#65292;&#25105;&#23581;&#35797;&#22312;#left&#12289;#middle&#21644;#right&#20013;&#35774;&#32622;&quot;height:100%;&quot;&#65292;&#20294;&#21457;&#29616;&#23436;&#20840;&#27809;&#26377;&#39044;&#24819;&#30340;&#33258;&#36866;&#24212;&#39640;&#24230;&#25928;&#26524;&#12290;&#32463;&#36807;&#19968;&#30058;&#23581;&#35797;&#21518;&#65292;&#25105;&#21482;&#22909;&#32473;&#27599;&#20010;div&#19968;&#20010;&#32477;&#23545;&#39640;&#24230;:&quot;height:1000px;&quot;&#65292;&#24182;&#19988;&#38543;&#30528;&#20869;&#23481;&#30340;&#22686;&#21152;&#65292;&#38656;&#35201;&#19981;&#26029;&#20462;&#27491;&#36825;&#20010;&#20540;&#12290;&#38590;&#36947;&#27809;&#26377;&#21150;&#27861;&#33258;&#36866;&#24212;&#39640;&#24230;&#20102;&#21527;&#65311;&#38543;&#30528;&#38463;&#25463;&#33258;&#24049;&#23398;&#20064;&#30340;&#28145;&#20837;&#65292;&#21457;&#29616;&#19968;&#20010;&#21464;&#36890;&#30340;&#35299;&#20915;&#21150;&#27861;&#65292;&#23454;&#38469;&#19978;&#26681;&#26412;&#19981;&#38656;&#35201;&#35774;&#32622;100%&#65292;&#25105;&#20204;&#24050;&#32463;&#34987;table&#24605;&#32500;&#31105;&#38178;&#22826;&#28145;&#20102;&#65292;&#36825;&#20010;&#21150;&#27861;&#22312;&#19979;&#19968;&#33410;&#30340;&#23398;&#20064;&#20013;&#35814;&#32454;&#20171;&#32461;&#12290;]]></content><publish>2007-07-01 01:36:37</publish><update>2008-08-17 19:39:00</update><comment>0</comment><view>2316</view></article><comments/><previous id="119"><title>使用Web标准建站第8天:CSS布局入门</title></previous><next id="121"><title>使用Web标准建站第10天:自适应高度</title></next></content></panel></panels><modules><module id="4" sn="3" sys="true"><name>Category</name><title>日志分类</title></module><module id="6" sn="4" sys="true"><name>Archive</name><title>日志归档</title></module><module id="5" sn="5" sys="true"><name>User Panel</name><title>控制面板</title></module><module id="10" sn="6" sys="true"><name>Recent Article</name><title>最新日志</title></module><module id="8" sn="7" sys="true"><name>Search</name><title>查询搜索</title></module><module id="7" sn="8" sys="true"><name>Recent Comments</name><title>最新评论</title></module><module id="2" sn="9" sys="true"><name>Statistics</name><title>统计信息</title></module></modules><user><usn></usn><status>3</status><login>false</login></user></blog>
