html元素转canvas并一键生成png图片(支持img图片元素)
}#content{border-radius:3px;
}#btnSave,#Download{position:absolute;left:180px;top:540px;width:78px;height:30px;background-color:#22b4f6;color:#fff;text-align:center;border-radius:3px;border:none;
}#Download{margin-left:560px;
}.tx,.bt{border:1px solid #999;width:100px;height:20px;border-radius:3px;
}.bt{background-color:#22b4f6;color:#fff;text-align:center;border:none;
}
注意:html2canvas 只能在服务器中抓取img
昵称:马云云
技能:前端 + 后端 + 小程序 + webapp
语言:html5、php、mysql
脚本:javascript
框架:vue.js、smarty、thinkphp、MUI、WeUI、Bootstrap