2006-05-10

userChrome.css 設定檔

userChrome.css - 用來改變瀏覽器的外觀。
這些指令或標籤可能會因 Firefox 版本不同而有所差異。

檔案的位置以 Windows 版來說在
c:\Documents and Settings\[Window 登入帳號]\Application Data\
Mozilla\Firefox\Profiles\8位數亂碼.[Firefox 使用者帳號]\chrome 的目錄下。
這個檔案是普通的文字檔,以系統預設編碼儲存即可,我自己是都存成 UTF-8 格式,方便在兩個不同語系的系統交換使用。

範例:

/* userChrome.css */
/* set default namespace to XUL */
/* Do not remove the @namespace line -- it's required for correct functioning */
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* 工具列背景圖 */
menubar, toolbox, toolbar, .tabbrowser-tabs {
 background-image: url("background.gif") !important;
 background-color: none !important;
}

/* 取消分頁工具列右方關閉鈕 */
/* 用滑鼠中鍵操作(Firefox 內建)或其它套件提供相關功能操作 */
.tabs-closebutton-box { display:none !important; }

/* 書籤 */
.bookmark-item {
 min-width:50px !important; /* 最小寬度 */
 max-width:150px !important; /* 最大寬度 */
}

/* 蹦現選單背景圖 */
menupopup, popup {
 background-image:url(fx_bg_popup.jpg) !important;
 background-position:left top !important;
 background-repeat:no-repeat !important;
 background-attachment:scroll !important;
}
/* 蹦現選單「反白選項」色彩 */
menupopup>menu[_moz-menuactive="true"],
menupopup>menuitem[_moz-menuactive="true"],
popup>menu[_moz-menuactive="true"],
popup>menuitem[_moz-menuactive="true"] {
 background-color:#000 !important;
 color:#fff !important;
}

0 意見: