Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Overflow hidden not working

  • 7 відповідей
  • 35 мають цю проблему
  • 1 перегляд
  • Остання відповідь від Kevin

more options

Hey,

I'm in need of disabling scroll on body, and enabling it on div that appears on top.

I'm setting on body overflow: hidden; and on div that show on top overflow: auto;

it works in all major mobile browsers, but in firefox it does not.

I've addded an image which represents my problem black frame is viewport red box is body with overflow:hidden cyan box is div with overflow:auto


here's jsfiddle with an example: http://jsfiddle.net/gwhkLnbu/1/ on firefox mobile you can scroll the red div, but you cant do it on any other browser

Hey, I'm in need of disabling scroll on body, and enabling it on div that appears on top. I'm setting on body overflow: hidden; and on div that show on top overflow: auto; it works in all major mobile browsers, but in firefox it does not. I've addded an image which represents my problem black frame is viewport red box is body with overflow:hidden cyan box is div with overflow:auto here's jsfiddle with an example: http://jsfiddle.net/gwhkLnbu/1/ on firefox mobile you can scroll the red div, but you cant do it on any other browser
Прикріплені знімки екрана

Змінено adwil

Обране рішення

hello, thanks for brining it up - this appears to be bug #886969 which didn't see much activity recently unfortunately...

Читати цю відповідь у контексті 👍 0

Усі відповіді (7)

more options

Вибране рішення

hello, thanks for brining it up - this appears to be bug #886969 which didn't see much activity recently unfortunately...

more options

Okay so I'm waiting for this bug to be solved, no point in making a (probably) dirty fix for something that will be fixed anyway :)

Thanks

more options

adwil said

Okay so I'm waiting for this bug to be solved, no point in making a (probably) dirty fix for something that will be fixed anyway :) Thanks

Has anyone found a fix for this bug?

It doesn't look very good at all. I would really appreciate it if someone was to share a fix they have worked out. I've try many different ideas, but haven't managed to sort it out.

Змінено matthewpoll

more options

Hey,

Right now my site is working with something like this in CSS:

html.noscroll, body.noscroll {

   overflow: hidden;

}

you have to add noscroll class to both body and html then it does basically same thing as overflow hidden just on body in other browsers

Змінено adwil

more options

adwil said

Hey, Right now my site is working with something like this in CSS: html.noscroll, body.noscroll { overflow: hidden; } you have to add noscroll class to both body and html then it does basically same thing as overflow hidden just on body in other browsers

Thanks. That doesn't solve my problem though. I would like to scroll on all the pages, as it is necessary. I just don't want an excessive amount of space under my content in firefox .

Змінено matthewpoll

more options

Does anyone have a solution to this please? I cannot use this method:

html.noscroll, body.noscroll {

  overflow: hidden;

}

As it is necessary to scroll on each of the pages. I just don't want an excessive amount of space under my content, when using firefox.

more options

This is a user support forum. Something like stackoverflow might be better for web development talk.