<?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/171/c11">
        <title>睡蓮‧池水間 :: 文章</title>
        <description>文章XML</description>
        <link>http://waterlily-lsl.com/modules/article/view.article.php/171/c2</link>
        <image rdf:resource="http://waterlily-lsl.com/modules/article/images/logo.png" />
       <dc:date>2012-05-24T00:42:10+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://waterlily-lsl.com/modules/article/view.article.php/171/c2"/>
            </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/171/c2">
        <dc:format>text/html</dc:format>
        <dc:date>2009-04-06T13:44:40+02:00</dc:date>
        <dc:source>http://waterlily-lsl.com/modules/article/</dc:source>
        <dc:creator>睡蓮</dc:creator>
        <title>難以發現的 CSS 問題</title>
        <link>http://waterlily-lsl.com/modules/article/view.article.php/171/c2</link>
        <description>類別: 語言集&lt;br /&gt;來源: (池水間)話說昨天在Opera瀏覽器下為池水間進行網站優化和代碼改良時，間隔了一段長時間才去打開firefox檢視一下網站，這下不看猶自可，一看嚇了一跳，在firefox下的池水間變得面目全非，馬上打開其他瀏覽器查看，結果safari也是和firefox一樣有問題，只有opera和IE都正常，這是怎麼回事了？&lt;br /&gt;&lt;br /&gt;從firefox和safari出現的徵狀來看，似乎是瀏覽器在解析CSS語法上出問題，打開CSS查看了語法，來回檢查了好幾遍，偏偏就沒有找到錯漏之處，連CSS檔的編碼也是正確的utf8。正當百思不得其解之際，我的視線不經意地落在頁腳左邊W3C的CSS驗證連結上，頓時靈光一閃，利用這驗證工具查看，在W3C驗證結果頁面下的CSS立時現形。&lt;br /&gt;&lt;br /&gt;CSS有什麼問題？給出以下例子：&lt;br /&gt;&lt;div class=&quot;xoopsCode&quot;&gt;&lt;p class=&quot;cTitle&quot;&gt;&lt;img class=&quot;icon-l&quot; src=&quot;http://waterlily-lsl.com/themes/waterlilyLSL-GW/img/code-icon1.gif&quot; alt=&quot;&quot;/&gt;&lt;img class=&quot;icon-r&quot; src=&quot;http://waterlily-lsl.com/themes/waterlilyLSL-GW/img/code-icon2.gif&quot; alt=&quot;&quot;/&gt;&lt;/p&gt;&lt;pre&gt;
&amp;lt;!DOCTYPE html PUBLIC &amp;quot;-//W3C//DTD XHTML 1.0 Strict//EN&amp;quot; &amp;quot;&amp;#104;ttp:&amp;#47;&amp;#47;&amp;#119;ww.w3.org/TR/xhtml1/DTD/xhtml1-strict&amp;#46;dtd&amp;quot;&amp;gt;
&amp;lt;html xmlns=&amp;quot;&lt;a href=&quot;http://www.w3.org/1999/xhtml&amp;quot;&quot; title=&quot;http://www.w3.org/1999/xhtml&amp;quot;&quot; rel=&quot;external&quot;&gt;http://www.w3.org/1999/xhtml&amp;quot;&lt;/a&gt; xml:lang=&amp;quot;zh-tw&amp;quot; lang=&amp;quot;zh-tw&amp;quot;&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta http-equiv=&amp;quot;content-type&amp;quot; content=&amp;quot;text/html; charset=UTF-8&amp;quot; /&amp;gt;
	&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;
 /*&amp;lt;![CDATA[*/
&lt;span style=&quot;color: #ffac00;&quot;&gt;.example1 {    font-size:20px;    color:#1dab5c;    }
.example2 {　　font-size:12px;　　color:#ff0000;　　}&lt;/span&gt;
 /*]]&amp;gt;*/
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;p class=&amp;quot;example1&amp;quot;&amp;gt;字體較大，為綠色字&amp;lt;/p&amp;gt;
&amp;lt;p class=&amp;quot;example2&amp;quot;&amp;gt;字體較小，為紅色字&amp;lt;/p&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;從上面的橘色CSS語法中，能看出哪裡有錯誤的地方嗎？如果給個提示，只有 .example2 的那一行語法顯示出來不正常，那麼又能不能看出錯誤在哪裡？&lt;br /&gt;&lt;br /&gt;請分別在firefox和IE下，各&lt;a href=&quot;javascript:void(0); &quot; onclick=&quot;javascript:openpppTool()&quot;&gt;點按這裡&lt;/a&gt;，將上面語法複製進實驗板去觀看結果。&lt;br /&gt;&lt;br /&gt;這是一般人用肉眼也不易發現得到的問題，這也是我近來才發現這個鮮為人知郤又存在的問題。好在利用W3C驗證工具，CSS就無所遁形：&lt;br /&gt;&lt;div style=&quot;background:url(/uploads/article/images/0904061.gif) no-repeat 50% 0;width:900px;height:238px&quot;&gt;&lt;/div&gt;&lt;br /&gt;沒錯，圖中的紅框就是CSS裡面的空格，會以亂碼呈現，就是出在這些空格是用全形，正常的空格應該是用半形的。&lt;br /&gt;&lt;br /&gt;依照上面的錯誤頁面上的行數提示，逐一把空格找出來修正，再把CSS送去W3C驗證，最後熟悉的綠標題背景頁面終於再度呈現回來了。&lt;br /&gt;&lt;div style=&quot;background:url(/uploads/article/images/0904062.gif) no-repeat 50% 0;width:900px;height:363px&quot;&gt;&lt;/div&gt;&lt;br /&gt;</description>
    </item>
</rdf:RDF>

