搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

话题已关闭并存档。 如果需要帮助请提出新问题。

layout.css.scrollbar-width.enabled not working

  • 7 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 cor-el

more options

I just upgraded to Firefox 79.0, and now the scrollbars on outlook.com are narrow with no scroll buttons. I fixed this problem long ago by setting layout.css.scrollbar-width.enabled to false. It's still set, but now the scrollbars are back to being narrow.

I just upgraded to Firefox 79.0, and now the scrollbars on outlook.com are narrow with no scroll buttons. I fixed this problem long ago by setting layout.css.scrollbar-width.enabled to false. It's still set, but now the scrollbars are back to being narrow.

被采纳的解决方案

Support for the prefs layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled has been removed in Firefox 79.

  • bug 1641324 - Remove the layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled prefs. [79]

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)


As a workaround you can add this code to the userContent.css file.

Add code to the userContent.css file.


*{ scrollbar-color: auto !important; scrollbar-width: auto !important; }

It is not that difficult to create userContent.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder".
If you click this button then you open the profile folder in the Windows File Explorer.
You need to create a folder with the name chrome in this folder (name is all lowercase).
In the chrome folder you need to create a plain text file with the name userContent.css (name is case sensitive).
In this userContent.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userContent.css.txt.
To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userContent.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See:

定位到答案原位置 👍 1

所有回复 (7)

more options

选择的解决方案

Support for the prefs layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled has been removed in Firefox 79.

  • bug 1641324 - Remove the layout.css.scrollbar-width.enabled and layout.css.scrollbar-color.enabled prefs. [79]

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)


As a workaround you can add this code to the userContent.css file.

Add code to the userContent.css file.


*{ scrollbar-color: auto !important; scrollbar-width: auto !important; }

It is not that difficult to create userContent.css if you have never used it.

The first step is to open the "Help -> Troubleshooting Information" page and find the button to access the profile folder.

You can find this button under the "Application Basics" section as "Profile Folder -> Open Folder".
If you click this button then you open the profile folder in the Windows File Explorer.
You need to create a folder with the name chrome in this folder (name is all lowercase).
In the chrome folder you need to create a plain text file with the name userContent.css (name is case sensitive).
In this userContent.css text file you paste the text posted.

In Windows saving the file is usually the only time things get more complicated because Windows can silently add a .txt file extension and you end up with a file named userContent.css.txt.
To avoid this you need to make sure to select "All files" in the dialog to save the file in the text editor using "Save File as".

You need to close (Quit/Exit) and restart Firefox when you create or modify the userContent.css file.

See also:

In Firefox 69 and later you need to set this pref to true on the about:config page to enable userChrome.css and userContent.css in the chrome folder.

  • toolkit.legacyUserProfileCustomizations.stylesheets = true

See:

由cor-el于修改

more options

That worked. Thank you very much.

more options

Does not work for me: Ubuntu 20.04.1 LTS Firefox 82.0 (64-bit)

Created "chrome" folder within profile folder. Created "userContent.css" Copied and pasted:

  • {scrollbar-color:auto!important; scrollbar-width:auto!important;}

into userContent.css verified (it is) toolkit.legacyUserProfileCustomizations.stylesheets = true . Restarted Firefox. No change. I fail to see how the pasted string would increase or otherwise modify the existing width of the scrollbar. Thanks.

由jeffschips于修改

more options

@jeffschips

Is that in the profile folder location that you reach via the button on the about:support page ?

You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.

Try the Firefox version from the official Mozilla server if you currently use a version from the repositories of your Linux distribution.


  • Bug 1645676 - Removing layout.css.scrollbar-color.enabled pref causes accessibility/usability issue

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

由cor-el于修改

more options

@jeffschips

Do you have other code in userContent.css that might be causing problems ?

Does it work if you place the code at the top of userContent.css ?

Can you post the content of your userContent.css ?

more options

Thanks all for the quick reply! Wow that was fast!

My userContent.css only contains the suggested string.

And yes I got the directory location from the suggested method.

But my research shows that the string suggested only sets the width to the default on the "system" so how would that string increase the width beyond what it is already, which is way to narrow to enjoy and which, I presume, is the default anyway.

I will now try using the firefox version from the mozilla site and report back.

more options

I noticed that jeffschips created a new thread, so lets continue there.