CSS 部分:
body {
-webkit-filter:grayscale(100%);
-moz-filter:grayscale(100%);
-ms-filter:grayscale(100%);
-o-filter:grayscale(1);
filter:gray!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>html table border to canvas</title> | |
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.slim.js"></script> | |
<script src="https://cdn.bootcdn.net/ajax/libs/html2canvas/1.3.3/html2canvas.js"></script> | |
<style> | |
th, td { | |
padding: 20px; |
CSS 部分:
body {
-webkit-filter:grayscale(100%);
-moz-filter:grayscale(100%);
-ms-filter:grayscale(100%);
-o-filter:grayscale(1);
filter:gray!important;
filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
/** | |
* 检测 WebGL 是否启用 | |
* 参考 http://www.browserleaks.com/webgl#howto-detect-webgl | |
* 参考 https://gist.github.com/SeanZoR/cfa7a6206983b775a858 | |
* | |
* @return { number } | |
* -1: 不持支 WebGL | |
* 0: WebGL 被禁用 | |
* 1: WebGL 已启用 | |
*/ |
window.requestAnimFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e,n){window.setTimeout(e,1e3/60)},window.requestInterval=function(e,n){if(!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame&&window.mozCancelRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame))return window.setInterval(e,n);var i=(new Date).getTime(),a=new Object;return a.value=requestAnimFrame(function t(){(new Date).getTime()-i>=n&&(e.call(),i=(new Date).getTime()),a.value=requestAnimFrame(t)}),a},window.clearRequestInterval=function(e){window.cancelAnimationFrame?window.cancelAnimationFrame(e.value):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e.value):window.webkitCancelRequestAnimationFrame?window.webkitCancelRequestAnimationFrame(e.value):window.mozCancelRequestAnimationFrame?window.mozCancelRequestAnimatio |
// requestAnimationFrame() shim by Paul Irish | |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
window.requestAnimFrame = (function() { | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
function(/* function */ callback, /* DOMElement */ element){ | |
window.setTimeout(callback, 1000 / 60); |
/** | |
* Base on Stylish | |
* Material icons from Google Design(https://design.google.com/icons/) | |
* Base64 encoder from b64.io(http://b64.io/) | |
**/ | |
@import url(https://fonts.css.network/css?family=Product+Sans:400,700&subset=latin,latin-ext); | |
body { | |
-webkit-animation-delay: 0.1s; |
/** | |
* Base on Stylish | |
* Material icons from Google Design(https://design.google.com/icons/) | |
* Base64 encoder from b64.io(http://b64.io/) | |
**/ | |
body { | |
-webkit-animation-delay: 0.1s; | |
-webkit-animation-name: fontfix; | |
-webkit-animation-duration: 0.1s; |
* { | |
font-family: \5FAE\8F6F\96C5\9ED1,Tahoma,Verdana,"宋体"!important; | |
} | |
html { | |
background-color:#fff | |
} | |
body { | |
padding-top:0!important | |
} | |
iframe[id^=iframe], |