src/components/AiChat.vue
@@ -1,5 +1,5 @@ <template> <div style="position: relative;height: 800px;width: 100%;display: flex;justify-content: center"> <div style="position: relative;height:calc(100vh - 20px);width: 100%;display: flex;justify-content: center"> <!-- 聊天消息列表 --> <div class="chat-messages"> <div @@ -247,7 +247,7 @@ justify-content: center; align-items: center; position: absolute; bottom: 70px; bottom: 50px; left: 50%; /* 将 div 的左边移动到父容器的 50% 位置 */ transform: translateX(-50%); /* 将 div 向左移动自身宽度的 50% */ }