阅读:2378回复:5
火狐的代码是怎么用的?是直接在网址栏输入吗?
火狐新手,以前也从来没有利用代码修改的经验。看见网站有许多利用代码修改火狐的,可是不会使用火狐的代码,请问代码是怎么用的?是直接在网址栏输入吗?
|
|
1楼#
发布于:2011-10-07 11:58
看是什么代码……
字符串神马的,在网址栏输入about:config,搜索条目,新建/修改…… 要么把代码填入userChrome.CSS(定制浏览器外观)或userContent.CSS(定制网页显示)文件里。 2个文件在profile里,没有就新建个。 一般提供代码的作者会告诉你怎么安装的……或者告诉你安装的关键词,自己搜…… |
|
2楼#
发布于:2011-10-07 11:58
不同的代码用的方法也不同。你举个例子,贴上代码,然后再让别人回答。
|
|
3楼#
发布于:2011-10-07 11:58
比如下面这段 怎么用?
@-moz-document url-prefix("https://www.firefox.net.cn/forum/viewforum.php") { dd.posts, dd.topics, dd.views { line-height: 2.8em !important; } ul.topiclist dt { width: 63% !important; } dd.lastpost { width: 12% !important; } } @-moz-document url-prefix("https://www.firefox.net.cn/forum/viewtopic.php") { .online { background-position: 12% 0 !important;} .ua { margin-left: 18% !important; } .postbody { width: 82% !important; float: right !important; } .postprofile { width: 17% !important; border-left: none !important; padding-right: 5px !important; } #message-box { width:99% !important; } } @-moz-document url-prefix("https://www.firefox.net.cn/forum/posting.php") { #subject { width:645px !important; } } 这个帖子里面提到的 不是想实现那个功能 只是示范 https://www.firefox.net.cn/forum/viewtopic.php?f=2&t=38979 |
|
4楼#
发布于:2011-10-07 11:58
这不都是css代码的吗?
|
|
5楼#
发布于:2011-10-07 11:58
花非花:比如下面这段 怎么用?@-moz-document url-prefix("https://www.firefox.net.cn/forum/viewforum.php") { dd.posts, dd.topics, dd.views { line-height: 2.8em !important; } ul.topiclist dt { width: 63% !important; } dd.lastpost { width: 12% !important; } } @-moz-document url-prefix("https://www.firefox.net.cn/forum/viewtopic.php") { .online { background-position: 12% 0 !important;} .ua { margin-left: 18% !important; } .postbody { width: 82% !important; float: right !important; } .postprofile { width: 17% !important; border-left: none !important; padding-right: 5px !important; } #message-box { width:99% !important; } } @-moz-document url-prefix("https://www.firefox.net.cn/forum/posting.php") { #subject { width:645px !important; } } 这个是CSS代码,在stylish扩展里用。方便简单 |
|