修复输入框居中问题
This commit is contained in:
parent
a3dc204b21
commit
3deccb078d
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user