Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

How can I remove scrollbar in the browser window?

  • 6 trả lời
  • 8 gặp vấn đề này
  • 44 lượt xem
  • Trả lời mới nhất được viết bởi David McRitchie

more options

Hi,

For a certain reason I want to remove the vertical scrollbar (appears when the page content is longer than the screen height). How can I do that?

Hi, For a certain reason I want to remove the vertical scrollbar (appears when the page content is longer than the screen height). How can I do that?

Giải pháp được chọn

You can use this code in Stylish or userChrome.css:

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

#content browser { margin-right:-14px!important; overflow-y:scroll; overflow-x:hidden;}

(you may need to add the !important flag)

Đọc câu trả lời này trong ngữ cảnh 👍 2

Tất cả các câu trả lời (6)

more options

and you want to do this because you are a

  1. web page developer (and are aware that users can override)
  2. user (and realize your next computer's screen size may be different)

As a user you might install a style to remove the vertical scrollbar and limit it to a certain domain, or to a specific webpage.

As a user this Google search for a style should help you find something of interest.

site:userstyles.org/styles/ -inurl:browse remove vertical scrollbar webpage
more options

I am both a user and a developer and I am aware of the things you mentioned. I just want to remove the scrollbar for some screenshots.

I installed Stylish addon and "Hide scrollbars globally" from http://userstyles.org/styles/13594/hide-scrollbars-globally, the scrollbar is gone but mousewheel scrolling does not work now. Can this be fixed? I am on Vista.

more options

Giải pháp được chọn

You can use this code in Stylish or userChrome.css:

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

#content browser { margin-right:-14px!important; overflow-y:scroll; overflow-x:hidden;}

(you may need to add the !important flag)

Được chỉnh sửa bởi cor-el vào

more options

Thank you very much cor-el. It works nice.

more options

Good, better that I didn't answer first but I use this extension which provides Mac like grabbing of a page to move it around within the windows, same technique as you use in Google Maps to move the map around. Make sure you have the installed toolbar button available from customization to use the extension.