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 相关文章推荐
Javascript中的var_dump函数实现代码
Sep 07 Javascript
人人网javascript面试题 可以提前实现下
Jan 05 Javascript
推荐8款jQuery轻量级树形Tree插件
Nov 12 Javascript
javascript表格的渲染组件
Jul 03 Javascript
jQuery插件之jQuery.Form.js用法实例分析(附demo示例源码)
Jan 04 Javascript
JavaScript数组去重由慢到快由繁到简(优化篇)
Aug 26 Javascript
jquery实现(textarea)placeholder自动换行
Dec 22 Javascript
javascript变量提升和闭包理解
Mar 12 Javascript
Express本地测试HTTPS的示例代码
Jun 06 Javascript
关于js对textarea换行符的处理方法浅析
Aug 03 Javascript
使用jquery的cookie实现登录页记住用户名和密码的方法
Mar 13 jQuery
微信小程序实现下拉刷新动画
Jun 21 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
mysql 的 like 问题,超强毕杀记!!!
2007/01/18 PHP
php使用sql数据库 获取字段问题介绍
2013/08/12 PHP
php foreach如何跳出两层循环(详解)
2016/11/05 PHP
通过jQuery打造支持汉字,拼音,英文快速定位查询的超级select插件
2010/06/18 Javascript
拖动布局之保存布局页面cookies篇
2010/10/29 Javascript
用C/C++来实现 Node.js 的模块(二)
2014/09/24 Javascript
创建自己的jquery表格插件
2015/11/25 Javascript
js判断文本框输入的内容是否为数字
2015/12/23 Javascript
学习JavaScript设计模式之单例模式
2016/01/19 Javascript
Bootstrap每天必学之导航组件
2016/04/25 Javascript
最全面的百度地图JavaScript离线版开发
2016/09/10 Javascript
原生JS实现左右箭头选择日期实例代码
2017/03/14 Javascript
node结合swig渲染摸板的方法
2018/04/11 Javascript
JavaScript实现单英文金山打字通
2020/07/24 Javascript
vue 实现 rem 布局或vw 布局的方法
2019/11/13 Javascript
详解JavaScript修改注册表的方法
2020/01/05 Javascript
[05:10]2014DOTA2国际邀请赛 通往胜利之匙赛场探秘之旅
2014/07/18 DOTA
python监控网卡流量并使用graphite绘图的示例
2014/04/27 Python
python遍历数组的方法小结
2015/04/30 Python
Python基于matplotlib绘制栈式直方图的方法示例
2017/08/09 Python
浅谈python中对于json写入txt文件的编码问题
2018/06/07 Python
Python log模块logging记录打印用法解析
2020/01/20 Python
Python递归实现打印多重列表代码
2020/02/27 Python
python如何安装下载后的模块
2020/07/03 Python
Python代码覆盖率统计工具coverage.py用法详解
2020/11/25 Python
websocket+sockjs+stompjs详解及实例代码
2018/11/30 HTML / CSS
最受欢迎的自我评价
2013/12/22 职场文书
领导干部考察材料
2014/02/08 职场文书
《珍珠泉》教学反思
2014/02/20 职场文书
竞赛口号大全
2014/06/16 职场文书
消防志愿者活动方案
2014/08/23 职场文书
教师自我剖析材料
2014/09/29 职场文书
幼儿园新学期开学寄语
2015/05/27 职场文书
调解协议书范本
2016/03/21 职场文书
纯html+css实现打字效果
2021/08/02 HTML / CSS
Nginx使用ngx_http_upstream_module实现负载均衡功能示例
2022/08/05 Servers