随笔分类 - html5
前端必学之一
摘要:效果: const drawFlag = () => { const viewBox = 1024; const poleHeight = 1000; const poleWidth = 60; const poleX = 10; const poleY = 10; const x = poleX
阅读全文
摘要:<template> <h1>${COMPONENT_NAME}</h1> </template> <script lang="ts" setup> import {reactive} from 'vue'; import {useRouter} from "vue-router"; import
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .div { width: 100vw; height: 100vh; position: absolute; le
阅读全文
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>满天星</title> <style> *{ margin: 0; padding: 0; } html,body { width: 100%; height:
阅读全文
摘要:我的想法: 1.首先给移动的元素一个绝对定位,position: absolute, 通过top和left来实现元素的移动。 2. 基本过程:(1)当鼠标的左键按下去时,给元素添加onmousemove, onmouseleave(鼠标不在元素上时, 移除onmousemove事件), onmous
阅读全文