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 Event学习补遗 addEventSimple
Feb 11 Javascript
javascript delete 使用示例代码
Mar 29 Javascript
学习从实践开始之jQuery插件开发 对话框插件开发
Apr 26 Javascript
jQuery中 attr() 方法使用小结
May 03 Javascript
JS的框架Polymer中的dom-if和is属性使用说明
Jul 29 Javascript
js删除数组中的元素delete和splice的区别详解
Feb 03 Javascript
p5.js入门教程之小球动画示例代码
Mar 15 Javascript
Vue 去除路径中的#号
Apr 19 Javascript
微信开发之微信jssdk录音功能开发示例
Oct 22 Javascript
微信小程序实现图片上传
May 23 Javascript
微信小程序版本自动更新的方法
Jun 14 Javascript
使用vue制作滑动标签
Sep 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
超外差式晶体管收音机的组装与统调
2021/03/01 无线电
PHP 批量删除 sql语句
2009/06/05 PHP
php防止恶意刷新与刷票的方法
2014/11/21 PHP
PHP的new static和new self的区别与使用
2019/11/27 PHP
jQuery事件绑定.on()简要概述及应用
2013/02/07 Javascript
Express.JS使用详解
2014/07/17 Javascript
实用又漂亮的BootstrapValidator表单验证插件
2016/05/30 Javascript
AngularJS基础 ng-non-bindable 指令详细介绍
2016/08/02 Javascript
jQuery实现的多张图无缝滚动效果【测试可用】
2016/09/12 Javascript
零基础轻松学JavaScript闭包
2016/12/30 Javascript
select下拉框插件jquery.editable-select详解
2017/01/22 Javascript
JavaScript实现三级联动效果
2017/07/15 Javascript
php register_shutdown_function函数详解
2017/07/23 Javascript
EasyUI的TreeGrid的过滤功能的解决思路
2017/08/08 Javascript
在vue项目创建的后初始化首次使用stylus安装方法分享
2018/01/25 Javascript
微信小程序webview实现长按点击识别二维码功能示例
2019/01/24 Javascript
详解微信小程序回到顶部的两种方式
2019/05/09 Javascript
JS数组降维的实现Array.prototype.concat.apply([], arr)
2020/04/28 Javascript
Python while 循环使用的简单实例
2016/06/08 Python
python中in在list和dict中查找效率的对比分析
2018/05/04 Python
使用Python处理Excel表格的简单方法
2018/06/07 Python
python 去除txt文本中的空格、数字、特定字母等方法
2018/07/24 Python
Python 数值区间处理_对interval 库的快速入门详解
2018/11/16 Python
Python字典对象实现原理详解
2019/07/01 Python
详解pandas数据合并与重塑(pd.concat篇)
2019/07/09 Python
Pycharm连接远程服务器并实现远程调试的实现
2019/08/02 Python
Python3并发写文件与Python对比
2019/11/20 Python
python实现遍历文件夹图片并重命名
2020/03/23 Python
什么样的创业计划书可行性高?
2014/02/01 职场文书
开学季活动策划方案
2014/02/28 职场文书
竞选文艺委员演讲稿
2014/04/28 职场文书
计划生育证明格式及范本
2014/10/09 职场文书
会计工作岗位职责
2015/02/03 职场文书
离婚协议书范本(2016最新版)
2016/03/18 职场文书
教师师德承诺书2016
2016/03/25 职场文书