about.vue 889 Bytes
<!--
 * @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>