Android 将iframe添加到Appcelerator应用程序
我需要使用iframe在我正在开发的应用程序中显示视频的第一帧 我的网络视图如下所示:Android 将iframe添加到Appcelerator应用程序,android,ios,iframe,appcelerator,youtube-iframe-api,Android,Ios,Iframe,Appcelerator,Youtube Iframe Api,我需要使用iframe在我正在开发的应用程序中显示视频的第一帧 我的网络视图如下所示: var myWebView = Ti.UI.createWebView({ height : deviceHeight * 0.04, width : deviceHeight * 0.04, left : deviceWidth * 0.03, backgroundColor : "red", url : "/local.html", }); 这是我的local.
var myWebView = Ti.UI.createWebView({
height : deviceHeight * 0.04,
width : deviceHeight * 0.04,
left : deviceWidth * 0.03,
backgroundColor : "red",
url : "/local.html",
});
这是我的local.html:
<html>
<body>
<iframe width="100" height="100" src="https:(myLink) frameborder="0"></iframe>
</body>
</html>
你真的需要它周围的iframe吗?设置链接的URL也会起作用
一种方法是设置元视口:
如果iframe应该是全屏的(而不是100px),那么它应该是这样的:
<body style="margin:0px;padding:0px;overflow:hidden">
<iframe src="http://www.youraddress.com" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"></iframe>
</body>
您真的需要iframe吗?设置链接的URL也会起作用
一种方法是设置元视口:
如果iframe应该是全屏的(而不是100px),那么它应该是这样的:
<body style="margin:0px;padding:0px;overflow:hidden">
<iframe src="http://www.youraddress.com" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"></iframe>
</body>