为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

There is a small margin between the close button and the upper right corner of the screen

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 hsp3kala

more options

Hello,

There is a small margin between the close button and the upper right corner of the screen, that prevents me from clicking the close button when I put the mouse pointer at this corner (at the end of the screen).

Because of habit and also because all other windows let me click the close button like this, I would like to ask if there is an option or a particular about:config entry in order to eliminate this margin, so that the clickable area of the close button expands to the upper right corner (end border of the screen) and regain the functionality that I have with all other windows.

Hello, There is a small margin between the close button and the upper right corner of the screen, that prevents me from clicking the close button when I put the mouse pointer at this corner (at the end of the screen). Because of habit and also because all other windows let me click the close button like this, I would like to ask if there is an option or a particular about:config entry in order to eliminate this margin, so that the clickable area of the close button expands to the upper right corner (end border of the screen) and regain the functionality that I have with all other windows.
已附加屏幕截图

由hsp3kala于修改

被采纳的解决方案

Try to move the buttons up a few pixels with code (negative margin-top) in userChrome.css.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#titlebar-buttonbox toolbarbutton {margin-top:-2px!important}

It is not that difficult to create userChrome.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 text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

You need to close and restart Firefox when you create or modify the userChrome.css file.

定位到答案原位置 👍 1

所有回复 (3)

more options

选择的解决方案

Try to move the buttons up a few pixels with code (negative margin-top) in userChrome.css.

Add code to the userChrome.css file below the default @namespace line.


@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */

#titlebar-buttonbox toolbarbutton {margin-top:-2px!important}

It is not that difficult to create userChrome.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 text file with the name userChrome.css (name is case sensitive). In this userChrome.css text file you paste the text posted.

You need to close and restart Firefox when you create or modify the userChrome.css file.

more options

Thank you very much for your help.

I added also a negative margin on the right:

  1. titlebar-buttonbox toolbarbutton {margin-top:-6px!important;

margin-right:-5px!important;}

It works as it should, the margin has gone.

Unfortunately when I click the restore window button and then maximize the window again the window controls revert to the initial position with the margin. I hope there is a way to fix this and have this functionality permanently.

more options

With the option of high density chosen as you see from the screenshot and this modification of code:

  1. titlebar-buttonbox toolbarbutton {margin-top:-2px!important;

margin-right:-5px!important;}

everything works as it should on firefox 61 without any glitch.Thank you again for this solution. I hope that mozilla will implement this by default soon, because is a fundamental functionality that exists in firefox for windows and we should not do all this, in order to have something so common on linux.