简体   繁体   English

Windows Phone 8 IE 1px水平滚动

[英]Windows Phone 8 IE 1px horizontal scroll

I have a parent div that has a width less then it's child width. 我有一个父div,其宽度小于其子宽度。 What is happening on Windows Phone 8 Phonegap App is that if there is enough content within the div that requires the div to scroll vertically, we are able to scroll 1px across horizontally. Windows Phone 8 Phonegap App上发生的事情是,如果div中有足够的内容要求div垂直滚动,则我们可以水平滚动1px。

I have tried setting the following attributes to no avail: 我尝试将以下属性设置为无效:

overflow: hidden;
overflow-x: hidden;

I have a link below simulating the problem I'm facing. 我在下面模拟我所面临的问题的链接。 This is the user agent string I am currently testing on: 这是我目前正在测试的用户代理字符串:

Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0 ARM; Touch; HTC; Windows Phone 8S by HTC) Mozilla / 5.0(兼容; MSIE 10.0; Windows Phone 8.0; Trident / 6.0; IEMobile / 10.0 ARM; Touch; HTC; HTC的Windows Phone 8S)

http://jsfiddle.net/7unP5/26/ http://jsfiddle.net/7unP5/26/

Have a try with using -ms-scroll-limit I haven't tried it, but it looks like it might do what you are looking for. 尝试使用-ms-scroll-limit,我还没有尝试过,但看起来它可以满足您的要求。

http://msdn.microsoft.com/en-us/library/ie/jj127336(v=vs.85).aspx http://msdn.microsoft.com/zh-CN/library/ie/jj127336(v=vs.85).aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM