0

On the Blackberry Bold 9900 running 7.1 Bundle 998 (v7.1.0.284, Platform 5.1.0.230) I am having a strange viewport related issue.

I am non-deterministically seeing screen.width alternate between 320px and 356px.

This affects the behavior of rendered content because I have a

<body>
   <div style="width:100%">
   </div>
</body>

that approx 50% of the time renders correctly (i.e. no horizontal scroll), but the rest of the time renders zoomed in and scrolls horizontally by 36px. Setting a fixed width on the body i.e. 320px causes the zoom issue to be resolved, but still has a white scrollable area on the right side.

Viewport:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

4

1 回答 1

0

事实证明,此设备存在问题,width:100%导致内容呈现比屏幕更宽。解决方法是设置width:auto.

于 2013-05-31T13:11:40.647 回答