234234234

随笔分类 -  html5

前端必学之一
摘要:效果: const drawFlag = () => { const viewBox = 1024; const poleHeight = 1000; const poleWidth = 60; const poleX = 10; const poleY = 10; const x = poleX 阅读全文
posted @ 2023-12-18 11:47 你若愿意,我一定去 阅读(33) 评论(0) 推荐(0) 编辑
摘要:<template> <h1>${COMPONENT_NAME}</h1> </template> <script lang="ts" setup> import {reactive} from 'vue'; import {useRouter} from "vue-router"; import 阅读全文
posted @ 2022-12-05 22:26 你若愿意,我一定去 阅读(700) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .div { width: 100vw; height: 100vh; position: absolute; le 阅读全文
posted @ 2022-10-14 13:58 你若愿意,我一定去 阅读(198) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>满天星</title> <style> *{ margin: 0; padding: 0; } html,body { width: 100%; height: 阅读全文
posted @ 2019-08-15 23:21 你若愿意,我一定去 阅读(1403) 评论(0) 推荐(0) 编辑
摘要:我的想法: 1.首先给移动的元素一个绝对定位,position: absolute, 通过top和left来实现元素的移动。 2. 基本过程:(1)当鼠标的左键按下去时,给元素添加onmousemove, onmouseleave(鼠标不在元素上时, 移除onmousemove事件), onmous 阅读全文
posted @ 2018-08-10 14:31 你若愿意,我一定去 阅读(162) 评论(0) 推荐(0) 编辑

23423423423
点击右上角即可分享
微信分享提示