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

搜索 | 用户支持

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

详细了解

how can i adjust the size of the address bar on the new firefox

  • 10 个回答
  • 6 人有此问题
  • 5 次查看
  • 最后回复者为 DigitalBlade

more options

on the old firefox you could adjust the size of the address bar by adding spaces from the customization menu.

on the new firefox i cannot find the "SPACES" customization option in the customization menu.

on the old firefox you could adjust the size of the address bar by adding spaces from the customization menu. on the new firefox i cannot find the "SPACES" customization option in the customization menu.

所有回复 (10)

more options

Sorry, the Spaces and Separators are gone from the default User Interface.

If you place the cursor between the Location Bar and the Search Bar, and move it slightly until the the double-head arrow appears, you can drag the Location Bar smaller and the Search Bar larger.

more options

since i do not use the google search bar and have removed it from the header your solution does not apply to my problem.

more options

Take a look at this extension - https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer - which restores those Spaces, among many other "retro" type UI elements.


Or you can set the size of the "container" via CSS rules. Use code like this in userChrome.css to set a max-width for those bars:

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

#urlbar-container { max-width: 400px !important; }
 

http://kb.mozillazine.org/UserChrome.css

more options

Note if there are other elements on the Navigation Toolbar that have a flex attribute like the search bar that they will automatically take empty space.

Do you have a specific reason that you want to shorten the location/address bar?

You can still change the relative size of the location bar and the search bar by placing the mouse between the two bars if they are next to each other and drag the resizer icon with the left mouse button pressed.

more options

i want to shorten the address bar just for looks,so i can see my theme. don't need an address bar a mile long.

don't use the google search bar so it is no longer on my header

more options

You can make some modification with code in the userChrome.css to have some transparency on the URL bar and possibly increase the height of the navigator toolbox.

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


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

#navigator-toolbox {min-height:200px!important}

#urlbar {opacity: 0.5!important}
#urlbar:hover {opacity: 0.8!important}
#urlbar[focused="true"] {opacity: 1!important}

#searchbar .searchbar-textbox {opacity: 0.5!important}
#searchbar .searchbar-textbox:hover {opacity: 0.8!important}
#searchbar .searchbar-textbox[focused="true"] {opacity: 1!important}

#tabbrowser-tabs tab:hover .tab-content {background-color:#ddd!important}

The customization files userChrome.css (user interface) and userContent.css (websites) are located in the chrome folder in the Firefox profile folder.

You can use this button to go to the currently used Firefox profile folder:

  • Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
  • Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
  • Use a plain text editor like Notepad to create a (new) userChrome.css file in the chrome folder (file name is case sensitive)
  • Paste the code in the userChrome.css file in the editor window
  • Make sure that the userChrome.css file starts with the default @namespace line
  • Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css. Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

由cor-el于修改

more options

are you people nuts??? i don't want to take a chance on screwing up my computer by changing all these codes. i just want a simple way to put spaces in my header to make the address bar very small so i can enjoy my theme.---- like i used to be able to do with previous versions on firefox.

more options

You will have to use the above mentioned Classic Theme Restorer extension to have a space item in the Customize palette like posted above. Current Firefox versions no longer have this possibility.

more options

i installed classic theme restorer and it does what i want as far as changing the size of the location bar.

but it does not save the changes, as soon i close out firefox and reopen it , it has reverted back to the way it was before i made my changes.

how do i get classic theme restorer to save my changes?

more options

I switched to Pale Moon, a FF derivative that will NEVER incorporate Australis and features the old UI and customizations. www.palemoon.org

Without wanting to belittle or diminish the contribution of this forums supporters, the constant "try classicthemerestorer" and css codes tips are missing the point.

While it is good for us more experienced users to know and use these(though I'm weary of too many add-ons), the problem and fact of the matter is:

Firefox is a castrated version of its former self and we all need to make the devs painfully aware of what an epic facepalm it is to introduce a quote: "more customizable" version featuring less customization than previous iterations...

(leaving the UI completely aside, they should not have removed those functionalities/customizations we all loved and that set FF aside from the others !!)

由DigitalBlade于修改