BLCL的博客小馆

标签 · Canvas📢📢📢 阿里云双十一,2核2G3M的服务器,99元一年,新老用户续费同享!!

首页

关于

归档

CanvasBlog

给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..

更多
loading..
技术Canvas

画一颗圣诞树🎄

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..

更多