摘要:
<!DOCTYPE html> <html lang="en"> <head> <title>不知道是什么</title> <style> #canvas { width: 500px; height: 500px; border: 1px solid red; position: relative 阅读全文
摘要:
const canvas = document.querySelector('#canvas') // 画布 const canvas_centent = canvas.getBoundingClientRect()//获取画布的大小 使用这个方法可以获取到画布的属性,使用如下: //获取画布的长和 阅读全文