about.vue
889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!--
* @Date: 2024-02-01 09:28:10
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-02-05 14:32:39
* @FilePath: /my-record/src/views/about.vue
* @Description: 文件描述
-->
<template>
<div class="">router test
<!-- <div contenteditable="true" class="textarea" @input="input"></div> -->
<div class="line">123</div>
</div>
</template>
<script setup>
import { ref } from "vue";
const input = (e) => {
console.log(e.target.innerHTML);
};
</script>
<style lang="less" scoped>
.textarea {
width: 300px;
height: 150px;
border: 1px solid #ccc;
padding: 5px;
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.5;
}
.line {
position: relative;
height: 1px;
}
.line::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 1px;
background-color: black;
transform: scaleY(0.5);
}
</style>