给Blog增加水印
Foreword 突发奇想,想给没写完的Blog加个水印,表示未完工,谨慎查看 水印 // 页面添加水印效果 const setWatermark = (str,width,height,font) => { const id = 'watermarkbyelmagnifico'; if (document.getElementById(id) !== null) document.body.removeChild(document.getElementById(id)); const can = document.createElement('canvas'); can.width = width; can.height = height; c..
更多画一颗圣诞树🎄
JUST FOR FUN初始化新建页面,添加一个 canvas 元素,引入 css, js 文件12345678910111213html><html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Christmas Treetitle> <link rel="stylesheet" href="style.css" /> head> <body> <canvas i..
更多