js使用html2canvas实现屏幕截取的示例代码


Posted in Javascript onAugust 28, 2017

整理文档,搜刮出一个js使用html2canvas实现屏幕截取的示例代码,稍微整理精简一下做下分享。

<!DOCTYPE html> 
<html> 
<head> 
<meta charset="utf-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> 
<title>Test</title> 
<style type="text/css"> 
*{ 
  margin:0 auto; 
  padding:0; 
} 
.btn{ 
  width:100px; 
  height:30px; 
  line-height:30px; 
  background:green; 
  color:#fff; 
  border-radius:10px; 
  -webkit-border-radius:10px; 
  text-align:center; 
  display:block; 
  text-decoration:none; 
  } 
.container{ 
  background:#e5e5e5; 
} 
</style> 
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> 
<script src="https://cdn.bootcss.com/html2canvas/0.4.1/html2canvas.js"></script> 
<script> 
 
$(function(){ 
  $("#btn").click(function(){ 
    html2canvas($("#container"), { 
      onrendered: function(canvas) { 
        //把截取到的图片替换到a标签的路径下载 
        $("#download").attr('href',canvas.toDataURL()); 
        //下载下来的图片名字 
        $("#download").attr('download','share.png') ;  
        document.body.appendChild(canvas); 
      } 
//可以带上宽高截取你所需要的部分内容 
//     , 
//     width: 300, 
//     height: 300 
    }); 
  }); 
}); 
</script> 
</head> 
 
<body> 
  <div style="padding:10px 0"> 
    <div class="btn" id="btn">截取屏幕</div> 
    <p style="color:red; text-align:center;">先点击截取屏幕后再点击截图下载</p> 
    <div style="margin-top:10px"> 
      <a href="javascript:;" rel="external nofollow" class="btn" id="download">截图下载</a> 
    </div> 
  </div> 
  <div class="container" id="container"> 
    <p style="text-align:center">以下是测试内容</p> 
    <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAZ2ElEQVR4Xu2d4Xoquw5DT9//oXs/6N20wCTjJTTO0Or8PU5sy7LiBMr++O+//z7/e5P/Pj95qB8fH5vZjfai9gp0Ix/KXs41FF8lD5cPuo+C0yw/yh/Ff8eaS3fwruqIbMOHUnTa0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JRU5ErkJggg=="> 
  </div> 
</body> 
</html>

由于使用最新版本的html2canvas截取屏幕有问题,所以上面使用的是v0.4.1版本进行测试。

注意事项:

1.页面加载完之后再调用html2canvas。

2.截取背景图片没有效果(就算把背景图片转为base64也没有效果)。

3.<img>标签的图片需要转为base64,不然截取没有效果(网上搜索了一下,好像都说是跨域问题)。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持三水点靠木。

Javascript 相关文章推荐
range 标准化之获取
Aug 28 Javascript
JS跨域代码片段
Aug 30 Javascript
鼠标经过显示二级菜单js特效
Aug 13 Javascript
深入理解JavaScript系列(34):设计模式之命令模式详解
Mar 03 Javascript
js实现获取两个日期之间所有日期的方法
Jun 17 Javascript
vue双向数据绑定原理探究(附demo)
Jan 17 Javascript
javascript 正则表达式去空行方法
Jan 24 Javascript
JavaScript 过滤关键字
Mar 20 Javascript
angularjs实现简单的购物车功能
Sep 21 Javascript
JavaScript实现的滚动公告特效【基于jQuery】
Jul 10 jQuery
angular组件间通讯的实现方法示例
May 07 Javascript
详解element-ui 表单校验 Rules 配置 常用黑科技
Jul 11 Javascript
JavaScript编写棋盘覆盖代码详解
Aug 28 #Javascript
Angular4开发解决跨域问题详解
Aug 28 #Javascript
JavaScript实现各种排序的代码详解
Aug 28 #Javascript
JS如何设置元素样式的方法示例
Aug 28 #Javascript
weex slider实现滑动底部导航功能
Aug 28 #Javascript
js使用原型对象(prototype)需要注意的地方
Aug 28 #Javascript
vue2.0移除或更改的一些东西(移除index key)
Aug 28 #Javascript
You might like
第九节--绑定
2006/11/16 PHP
php数组函数序列之array_intersect() 返回两个或多个数组的交集数组
2011/11/10 PHP
Laravel 5.4.36中session没有保存成功问题的解决
2018/02/19 PHP
使用Laravel中的查询构造器实现增删改查功能
2019/09/03 PHP
Alliance vs Liquid BO3 第一场2.13
2021/03/10 DOTA
用javascript实现给出的盒子的序列是否可连为一矩型
2007/08/30 Javascript
javascript iframe中打开文件,并检测iframe存在否
2008/12/28 Javascript
为EasyUI的Tab标签添加右键菜单的方法
2012/07/14 Javascript
JQuery获取或设置ckeditor的数据(示例代码)
2013/11/15 Javascript
JS网页图片按比例自适应缩放实现方法
2014/01/15 Javascript
理解javascript中的原型和原型链
2015/07/30 Javascript
js+div+css下拉导航菜单完整代码分享
2016/12/28 Javascript
微信小程序 实战程序简易新闻的制作
2017/01/09 Javascript
基于BootStrap multiselect.js实现的下拉框联动效果
2017/07/28 Javascript
浅谈Angular2 模块懒加载的方法
2017/10/04 Javascript
vue-baidu-map 进入页面自动定位的解决方案(推荐)
2018/04/28 Javascript
layui获取多选框中的值方法
2018/08/15 Javascript
vue+eslint+vscode配置教程
2019/08/09 Javascript
Linux环境下MySQL-python安装过程分享
2015/02/02 Python
python创建关联数组(字典)的方法
2015/05/04 Python
在Python中用get()方法获取字典键值的教程
2015/05/21 Python
Java及python正则表达式详解
2017/12/27 Python
python实现员工管理系统
2018/01/11 Python
Python用imghdr模块识别图片格式实例解析
2018/01/11 Python
python画图的函数用法以及技巧
2019/06/28 Python
Python字符串hashlib加密模块使用案例
2020/03/10 Python
一篇文章带你搞定Ubuntu中打开Pycharm总是卡顿崩溃
2020/11/02 Python
太阳镜仓库,售价20美元或更少:Sunglass Warehouse
2016/09/28 全球购物
美国马匹用品和马钉购物网站:State Line Tack
2018/08/05 全球购物
沃达丰英国有限公司:Vodafone英国
2019/04/16 全球购物
戴森英国官网:Dyson英国
2019/05/07 全球购物
学校安全教育制度
2014/01/31 职场文书
绿色城市实施方案
2014/03/19 职场文书
2014年母亲节寄语
2014/05/07 职场文书
社会体育专业大学生职业生涯规划书
2014/09/17 职场文书
高校自主招生教师推荐信
2015/03/23 职场文书