0
我想锁定我的网页在移动Safari中的水平滚动。 指定在background.js
N的宽度高度定为iPad的问题:网页在横向模式的iPhone
if(B.msie<=8 || B.iPad) (function() {
var mixin, i,
bg_tile = static_url('bg_tile');
if(B.iPhone || B.iPad) {
bg_tile = static_url('iOS_bg_tile');
}
for(i in mixin={
width: 768,
height: 600,
fade: false,
srcs: {
tile: bg_tile,
radial: static_url('bg_radial')
},
customCSS: function(el) {
el.style.background = 'url('+this.srcs.tile+')';
},
mainSrc: 'radial'
}) if(mixin.hasOwnProperty(i)) BG.BackgroundView.prototype[i] = mixin[i];
})();
但是,如果我添加了一个类似的块为iPhone它给缩放问题。
任何建议如何锁定iPhone中的水平滚动条?
在此先感谢.. :)