MozTW 討論區 https://forum.moztw.org/ |
|
FX5 with userChrome.css https://forum.moztw.org/viewtopic.php?f=2&t=32890 |
第 1 頁 (共 1 頁) |
發表人: | 訪客 [ 2011-06-28, 15:11 ] |
文章主題 : | FX5 with userChrome.css |
剛從FX3.6.18乾淨升級到FX5 不知道是不是不支援userChrome.css了? 除了沒有chrome資料夾,所以自己新增一個 OS:WIN7 AppData\Roaming\Mozilla\Firefox\Profiles\XXX.default\chrome 然後在裡頭用記事本放一個userChrome.css 確定不是.txt 有照一分鐘教室說要放入一句這個 代碼: @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 不管用unicode、UTF-8還是ANSI存起來 之前的設定都不會正確支援 代碼: a:hover {color:#****** !important; text-decoration:underline !important; } body{ background-image:url('file:///*.jpg/'); background-repeat:no-repeat !important; background-attachment:fixed !important; background-position:top right !important; } 不知道問題出在哪裡? 有好心人願意提點迷津嗎,感謝! |
發表人: | Fanolian [ 2011-06-28, 16:51 ] |
文章主題 : | Re: FX5 with userChrome.css |
我不會寫CSS,可是Fx5 還是有支援userChrome.css 跟userContent.css。 你試試把你的東西都搬到userContent.css,看看行不行。 在userContent.css 內第一句要用 代碼: @namespace url(http://www.w3.org/1999/xhtml); 而不是userChrome 那一句
|
發表人: | 訪客 [ 2011-06-28, 21:58 ] |
文章主題 : | Re: FX5 with userChrome.css |
感謝 Fanolian 大的指點! 試了一下userContent.css 發現不管有沒有那句@namespace url(http://www.w3.org/1999/xhtml); 都是可以正常支援的 a:hover 一切正常 但是background-image:url('file:///*.jpg/'); 不行 改成background-image:url('*.jpg'); 卻OK了 以為等了三個月以為可以無痛升級 沒想到套件無痛,卻小痛到CSS 咕狗又交叉測了快4個多小時終於把問題解決了(_"_)> |
第 1 頁 (共 1 頁) | 所有顯示的時間為 UTC + 8 小時 |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |