2016-09-27 97 views
1

我想通过Inappbrowser打开网站并允许缩放。浏览器打开页面,但缩放不起作用。我使用build.phonegap.com编译应用程序。我使用Cordova的6.3.0版本。Phonegap Build Inappbrowser Zooming

的index.html:

$(document).ready(function(){ 
     window.open('http://apache.org', '_blank', 'location=yes', 'zoom=yes'); 

config.xml文件:

<gap:plugin name="cordova-plugin-inappbrowser" source="npm"/> 

回答

1

相反使用变焦 '是' 价值,

尝试用百分比或数量。

为了您的记录,1 = 100%。

0

请尝试

 window.open('http://apache.org', '_blank', 'location=yes,zoom=yes'); 

Options是逗号分隔字符串。