修复输入框居中问题

This commit is contained in:
张梦南 2025-04-06 22:26:02 +08:00
parent a3dc204b21
commit 3deccb078d
2 changed files with 1 additions and 3 deletions

View File

@ -4,7 +4,6 @@
left: 0; left: 0;
width: 100%; width: 100%;
background: #fff; background: #fff;
padding: 10px;
box-shadow: 0 -2px 5px #fff; box-shadow: 0 -2px 5px #fff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View File

@ -54,8 +54,7 @@
<div class="input-row"> <div class="input-row">
<!-- 改用 onclick顺带阻止冒泡 --> <!-- 改用 onclick顺带阻止冒泡 -->
<input type="text" id="userInput" placeholder="输入你的消息..." <input type="text" id="userInput" placeholder="输入你的消息..." onclick="openChat(event)" />
onclick="openChat(event)" />
<button onclick="sendMessage()">发送</button> <button onclick="sendMessage()">发送</button>
</div> </div>
</div> </div>