var topView = new plus.nativeObj.View('topView',{left:'80px', bottom:'100px',height:'40px',width:'40px'});
var richtext = '<div id="upImgDraw" style=" height:"40px"; width:"40px";"><img src="./static/images/cp.png" width="30px" height="30px" style="opacity: 0.5;"></img></div>';
// 绘制文本
topView.drawRichText(richtext, {top:'0px',left:'10px',width:'100%',height:'wrap_content'}, {family:'Times New Roman',onClick:function(e){}},'upImgDraw');
代码这样写,安卓显示图片,ios不显示
1 个回复
1***@qq.com (作者) - 石头
重新传下代码,直接粘贴显示不全