|
用
api.openFrame({
name: 'htmlist_frame',
url: urlok,
scaleEnabled:true,
rect: {
x: 0,
y: headerH,
w: api.winWidth,
h: 'auto'
},
bounces: true
});
这个打开htm内容,字体显示太小,要手动放大。
用
var browser = api.require('webBrowser');
browser.openView({
url: urlok,
rect: {
marginLeft:5,
marginTop:70,
marginBottom:50,
marginRight:5
}
打开htm内容,字体显示太大,已经超出屏幕了,请问有什么办法打开htm内容就能自动适应屏幕吗?
|
|