<template> <div id="zhiHuiHaiMian"></div> <div id="LeftBox"></div> </template> <script setup name="zhiHuiHaiMian"> import { ref, reactive, toRefs, onMounted } from "vue"; const AllData = reactive({}); onMounted(() => {}); </script> <style lang="scss" scoped> #zhiHuiHaiMian { position: absolute; top: 0; width: 1000px; left: 20px; height: 80px; background: #ccc; } #LeftBox { position: absolute; left: 20px; top: 100px; height: calc(100% - 80px); width: 455px; background: #ccc; } </style>