No scrollbar appears in container with overflow auto (IE10, Windows Phone 8)

好久不见. 提交于 2020-01-03 15:33:32

问题


I have a container (let's say a div) with overflow: auto.

The elements in it are scrolled exactly as expected, but the typical touch scrollbar doesn't appear.

I tried to set -ms-overflow-style: auto explicitly, but nothing changed.

  • Browser: IE10
  • Device Windows Phone 8

回答1:


Check behavior here: http://msdn.microsoft.com/en-us/library/ie/hh771902(v=vs.85).aspx

Hope it helps.




回答2:


Based on the above link I think you should try

-ms-overflow-style: scrollbar

Scrollbar Indicates the element displays a classic scrollbar-type control when its content overflows.




回答3:


add: overflow:scroll; and it will show a scrollbar



来源:https://stackoverflow.com/questions/16791444/no-scrollbar-appears-in-container-with-overflow-auto-ie10-windows-phone-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!