我嘗試使用PHP
進行動態CSS
。如果內容有空白,如何添加單引號或雙引號
例如在font-family
$one = 'Times New Roman, Times, serif';
$two = 'Lucida Sans Unicode, Lucida Grande, sans-serif';
在style.php
body { font-family:<?php echo $two; ?>; }
在這裏,我想添加一個單引號或雙引號到Lucida Sans Unicode
,Lucida Grande
所以輸出中應
body { font-family:"Lucida Sans Unicode", "Lucida Grande", sans-serif; }
讓我知道如何與報價替換的字體
你可以引用字符串的每個元素,你知道嗎? – SilentGhost 2011-02-02 15:09:48