<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="ARTICLE @ XOOPS powered by FeedCreator" -->
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://waterlily-lsl.com//modules/article/xml.php/rdf/c15/89">
        <title>睡蓮‧池水間 :: 文章</title>
        <description>文章XML</description>
        <link>http://waterlily-lsl.com/modules/article/view.article.php/89/c15</link>
        <image rdf:resource="http://waterlily-lsl.com/modules/article/images/logo.png" />
       <dc:date>2012-02-11T00:41:48+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://waterlily-lsl.com/modules/article/view.article.php/89/c15"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://waterlily-lsl.com/modules/article/images/logo.png">
        <title>睡蓮‧池水間 :: 文章</title>
        <link>http://waterlily-lsl.com/modules/article/</link>
        <url>http://waterlily-lsl.com/modules/article/images/logo.png</url>
    </image>
    <item rdf:about="http://waterlily-lsl.com/modules/article/view.article.php/89/c15">
        <dc:format>text/html</dc:format>
        <dc:date>2008-10-24T20:34:53+02:00</dc:date>
        <dc:source>http://waterlily-lsl.com/modules/article/</dc:source>
        <dc:creator>睡蓮</dc:creator>
        <title>網頁柵格系統研究</title>
        <link>http://waterlily-lsl.com/modules/article/view.article.php/89/c15</link>
        <description>類別: 網頁藝術&lt;br /&gt;分頁標題: 960的秘密&lt;br /&gt;來源: (http://www.uiplanet.com/)研究網頁柵格系統前，來看一組數據：&lt;br /&gt;
&lt;table class=&quot;artContable3&quot; style=&quot;width:300px&quot;&gt;
&lt;tr&gt;
&lt;th&gt;網站&lt;/th&gt;&lt;th&gt;首頁頁面寬度 px&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://yahoo.com/&quot; rel=&quot;external&quot;&gt;Yahoo!&lt;/a&gt; &lt;/td&gt;&lt;td&gt;950&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://taobao.com/&quot; rel=&quot;external&quot;&gt;淘寶&lt;/a&gt;&lt;/td&gt;&lt;td&gt;950&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://myspace.com/&quot; rel=&quot;external&quot;&gt;MySpace&lt;/a&gt;&lt;/td&gt;&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://sina.com.cn/&quot; rel=&quot;external&quot;&gt;新浪&lt;/a&gt;&lt;/td&gt;&lt;td&gt;950&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://www.163.com/&quot; rel=&quot;external&quot;&gt;網易&lt;/a&gt;&lt;/td&gt;&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://live.com/&quot; rel=&quot;external&quot;&gt;Live Search&lt;/a&gt;&lt;/td&gt;&lt;td&gt;958&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://sohu.com/&quot; rel=&quot;external&quot;&gt;搜狐&lt;/a&gt;&lt;/td&gt;&lt;td&gt;950&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://youku.com/&quot; rel=&quot;external&quot;&gt;優酷&lt;/a&gt;&lt;/td&gt;&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href=&quot;http://aol.com/&quot; rel=&quot;external&quot;&gt;AOL&lt;/a&gt;&lt;/td&gt;&lt;td&gt;960&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br /&gt;
上面列舉的都是&lt;a href=&quot;http://www.alexa.com/site/ds/top_sites?ts_mode=global&amp;lang=none&quot; rel=&quot;external&quot;&gt;Alexa全球排名前100的站點&lt;/a&gt;，它們的首頁寬度為950px/960px。除了微軟的&lt;a href=&quot;http://live.com/&quot; rel=&quot;external&quot;&gt;Live Search&lt;/a&gt;，這些站點有個共同特點：頁面結構較複雜，都可以認為是門戶型網站。&lt;br /&gt;&lt;br /&gt;

再來看看&lt;a href=&quot;http://google.com/&quot; rel=&quot;external&quot;&gt;Google&lt;/a&gt;，&lt;a href=&quot;http://youtube.com/&quot; rel=&quot;external&quot;&gt;YouTube&lt;/a&gt;，&lt;a href=&quot;http://facebook.com/&quot; rel=&quot;external&quot;&gt;Facebook&lt;/a&gt;，&lt;a href=&quot;http://flickr.com/&quot; rel=&quot;external&quot;&gt;Flickr!&lt;/a&gt;，&lt;a href=&quot;http://ebay.com/&quot; rel=&quot;external&quot;&gt;eBay&lt;/a&gt;等知名站點，它們的首頁寬度沒什麼固定規律，共同的特點是：功能專一，頁面結構相對簡單。&lt;br /&gt;&lt;br /&gt;

根據上面的簡單分析可以認為：當搭建頁面結構複雜的門戶型網站時，開發工程師們不約而同地都選擇將頁面寬度定為950px/960px。&lt;br /&gt;&lt;br /&gt;

這是一件很有趣的事情，為什麼要選擇這個寬度呢？這個寬度值究竟有什麼魔力？&lt;br /&gt;&lt;br /&gt;

&lt;strong class=&quot;A_strong&quot;&gt;神奇的960&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;

設計師們對蘋果情有獨鍾。在 1024 x 768 的分辨率下，打開Firefox：&lt;br /&gt;
&lt;span style=&quot;background:url(/uploads/article/images/grid_system_apple.png) no-repeat 50% 0;height:373px;display:block&quot;&gt;&lt;/span&gt;&lt;br /&gt;

自然狀態下，Firefox窗體的大小約為 974 x 650. 減掉左右兩邊7px的邊框，網頁的實際大小為上圖中的紅色部分，高寬為 960 x 650。&lt;br /&gt;&lt;br /&gt;

有趣的960就這樣出現了。是的，可以認為一切就這麼簡單。柵格系統最早出現在平面設計領域，設計師們愛用蘋果，蘋果下瀏覽器的默認寬度為960px，於是960就這麼“自然”地出現了。&lt;br /&gt;&lt;br /&gt;

&lt;strong class=&quot;A_strong&quot;&gt;數字背後的奧妙&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;

上面的“自然”出現，細究自然是不讓人信服的。蘋果系統的設計者們在沒有喝醉酒的情況下選擇了960，而不是其它什麼1000之類的整數，自然另有奧妙。&lt;br /&gt;&lt;br /&gt;

科學界有很多問題都可以歸結到數學問題上，我們也從數學著手：
&lt;img src=&quot;http://waterlily-lsl.com/uploads/article/images/960_formula.png&quot; alt=&quot;960&quot; /&gt;&lt;br /&gt;&lt;br /&gt;

960可以分解為2的6次方乘以3和5, 這使得960可以分割成以下寬度的整數倍：
&lt;p class=&quot;exemplify&quot;&gt;
2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 20, 24, 30, 32, 40,
48, 60, 64, 80, 96, 120, 160, 192, 240, 320, 480&lt;/p&gt;&lt;br /&gt;
共26種（26 = 7 * 2 * 2 - 2, 減去2是去掉1和960自身），我們標記為：
&lt;p style=&quot;background:#714b6e;padding:5px;border:1px solid #ecc8e4&quot;&gt;
N(960) = N(2^6 * 3 * 5) = 26
&lt;/p&gt;&lt;br /&gt;
同理可以得到：
&lt;p class=&quot;exemplify&quot;&gt;
N(480) = N(2^5 * 3 * 5) = 6 * 2 * 2 - 2 = 22&lt;br /&gt;
N(750) = N(2 * 3 * 5^3) = 2 * 2 * 4 - 2 = 14&lt;br /&gt;
N(800) = N(2^5 * 5^2) = 6 * 3 - 2 = 16&lt;br /&gt;
N(1000) = N(2^3 * 5^3) = 4 * 4 - 2 = 14&lt;br /&gt;
N(1024) = N(2^10) = 11 - 2 = 9&lt;br /&gt;
N(1920) = N(2^7 * 3 * 5) = 8 * 2 * 2 - 2 = 30
&lt;/p&gt;&lt;br /&gt;
根據直覺（嚴格證明也不難，不過還是留給數學系的學生去證明吧），我們得到一個有趣的結論：&lt;br /&gt;&lt;br /&gt;
要使得N(width)最大，width的取值必須是 …，480，960，1920， …

N越大，可組合的寬度值就越多。&lt;strong class=&quot;A_strong&quot;&gt;對柵格系統來說，這意味著越靈活&lt;/strong&gt;！

目前絕大多數顯示器都支持 1024 x 768 及其以上分辨率，480太窄，1920則太寬（太寬也不利於閱讀），因此960就成為網頁柵格系統中的最佳寬度了。（補充：480可以應用在Flash的柵格設計中）

細心的你也許會記得，本文開頭列舉的寬度值中，950也出現了好幾次。950是怎麼來的？和960是啥關係？這些疑問，請關注本系列的下一篇文章。&lt;br /&gt;</description>
    </item>
</rdf:RDF>

