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

The line "body{ margin-bottom: 1000px !important; }" in userConent.css (enables correct scrolling with PageDown at the end of a webpage) does not work in some sites, e.g. en.wikipedia.org. How can I get this work?

  • 6 trả lời
  • 9 gặp vấn đề này
  • 15 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

At the end of a webpage, scrolling with PageDown can cause unexpected motion of the text lines, if the number of the "screens" do not divide the height of the webpage. Adding extra space at the end of the page solves this. This can be done with the line

body{ margin-bottom: 1000px !important; }

in userContent.css. However, some sites (e.g. Wikipedia) are not affected.

At the end of a webpage, scrolling with PageDown can cause unexpected motion of the text lines, if the number of the "screens" do not divide the height of the webpage. Adding extra space at the end of the page solves this. This can be done with the line body{ margin-bottom: 1000px !important; } in userContent.css. However, some sites (e.g. Wikipedia) are not affected.

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

In case you do not know...

If you want to limit css to specific sites you can do, e.g.

@-moz-document url-prefix(http://www.example.com/example_dir/)

{
css for this site/directory
}

(There are other varieties of this construction too.

Even easier is to use the Stylish addon. https://addons.mozilla.org/en-US/firefox/addon/2108/

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

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

more options

It seems to be because there is also this:

html, body {
...
height:100%;


If you add

body { height : auto  ! important ; }

it works

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

more options

Thank you very much!!

more options

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

In case you do not know...

If you want to limit css to specific sites you can do, e.g.

@-moz-document url-prefix(http://www.example.com/example_dir/)

{
css for this site/directory
}

(There are other varieties of this construction too.

Even easier is to use the Stylish addon. https://addons.mozilla.org/en-US/firefox/addon/2108/

more options

This is very interesting! Thank you very much!

more options

[The solution is the first reply, I don't know how to set this, but that's ok]

more options