问题
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