黑莓上的问题,网站不会改变方向,也不会水平滚动
当用户在黑莓手机上查看我的网站时,他们无法水平滚动。这很重要,因为黑莓上的视口小于网站的宽度。他们仍然可以上下滚动,只是不能左右滚动。另一件事是他们也无法缩小网站。最后,该网站也不会改变方向。在 iPhone 和 iPad 上测试时,缩放和滚动效果良好。
这可能是由元标记或视图端口设置引起的吗?哪些因素可能导致此问题?
When a users views my site on a Blackberry they are unable to scroll horizontally. This is important because the view port on the Blackberry is smaller than that of the width of the site. They can still scroll up and down just not side to side. The other thing is they cannot zoom out for the site either. Finally the site will not change orientation either. When testing on iPhone and iPad zooming and scrolling work fine.
Could it this be caused by a meta tag or view port setting? What are some of the things that could be causing this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题似乎是,在没有元标记的情况下,Balckberry 浏览器会将其自己的视口设置为设备的屏幕宽度。这使得设备视口右侧的页面其余部分被切断,尽管用户可以上下滚动,但无法左右滚动。
通过添加定义视口、其宽度和缩放级别并明确定义可扩展性的元标记解决了该问题。
The issue appears to be that in absence of a meta tag the Balckberry Browser will set its own viewport to the screen width of the device. This made it so that the rest of the page to the right of the device viewport was cut off and although users could scroll up and down they could not scroll side to side.
The issue was solved by adding a meta tag defining the viewport, its width, and a zoom level with scalability explicitly defined.