Firefox设置userContent.css — 改变网页的外观

转至Mozine中文论坛http://forums.mozine.org/t176.html原作者:论坛管理员dudu8995userContent.css 这个文件用来设置网页内容的显示规则,它在配置文件夹下的chrome的子文件夹里。一般位置C:Documents and Settings您的windows用户名Application DataMozillaFirefoxProfilesmfjl2fc.defaultchrome,默认时这个文件并不存在,在您设置您的选项之前需要创建它。默认情况下,有一个例子文件叫userContent-example.css。重命名这个文件,也就是删去后面的-example部分即可。修改打开新窗口链接的光标把下面的代码加入到userContent.css文件,当鼠标经过一个打开新窗口的链接时,鼠标指针会变成十字。[CODE]/* Change cursor for links that open in new window */:link[target=”_blank”], :visited[target=”_blank”], :link[target=”_new”], :visited[target=”_new”] {cursor: crosshair;}[/CODE]修改 JavaScript 链接的光标把下面的代码加入到userContent.css文件,当鼠标经过一个JavaScript 链接时,鼠标指针会变成移动指针。[CODE]/* Change cursor for JavaScript links */a[href^=”javascript:”] {cursor: move;}[/CODE]禁止 Flash 动画如果你讨厌那些 Flash 动画,那么把下面的代码加入到userContent.css文件。[CODE]/* Disable Flash */embed[type=”application/x-shockwave-flash”] {display: none !important;}[/CODE]让forms看起来更好加入下面的代码到userContent.css文件。[CODE]/* Make forms look nicer */input,textarea {border: 1px inset ThreeDFace;} select {border-width: 1px !important;} input[type=”radio”], input[type=”checkbox”] {border: 1px inset ThreeDFace ! important;} button, input[type=”reset”],input[type=”button”], input[type=”submit”] {padding: 1px 0 1px 0;border: 1px outset ButtonFace;}[/CODE]显示 IE 风格链接把下面的代码加入userContent.css文件,仅当鼠标在链接上悬停时为其显示下划线(IE 风格)。[CODE]/* IE style links: only underlined when hovering over */a { text-decoration: none !important; }a:hover { text-decoration: underline !important; }[/CODE]显示链接下划线把下面的代码加入到userContent.css文件,当鼠标在链接上悬停时为其显示下划线。[CODE]/* Underline links when hovering over them */a[href]:hover {text-decoration: underline !important;}[/CODE]在访问过的链接上加删除线把下面的代码加入到userContent.css文件,你访问过的链接上将会显示删除线。[CODE]/* strikethrough on visited links */a:visited { text-decoration: line-through !important; }[/CODE]禁止 标签一些网站用卷动的标签,如果你觉得它没用的话,把下面代码加到 userContent.css 文件来禁止它:[CODE]/* Stop those tags! */marquee {-moz-binding : none !important;display : block;height : auto !important;}[/CODE]

3 个评论 在 “Firefox设置userContent.css — 改变网页的外观

  1. 对不起,dudu8995管理员,从Mozine中文论坛看到不错就转过来了http://forums.mozine.org/
    真没有注意,不好意思啊

  2. 我可不是想要那个什么原创不原创,只是系统默认的,有注意的时候就有修改,时间紧的时候,就没修改
    谢谢您的修改,让我对这个版权有一定的认识,以后我会注意了,谢谢

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理

相关文章

开始在上面输入您的搜索词,然后按回车进行搜索。按ESC取消。

返回顶部