我正在制作一个聊天室应用程序,我需要消息输入字段与发送按钮内联,并为他们都在屏幕底部的固定位置。
--------------------THIS IS THE HTML--------------------
<div class="msg-inputs">
<input class="msg-input" type="text" rows="3" placeholder="Message" name="message" id="message" onkeydown="handleKeyDown(event)" />
<button class="send-btn" type="button" name="send" id="send-btn" onclick="sendMessage()">Send</button>
</div>
</div>
--------------------THIS IS THE CSS--------------------
.msg-inputs .msg-input[type=text] {
width: 80%;
position: fixed;
bottom: 0;
left: 1;
overflow: auto;
justify-content: center;
background-color: #181818;
}
.msg-inputs .send-btn{
background-color: #181818;
color: #ff9e3d;
border: 2px solid #ff9e3d;
position: fixed;
bottom: 0;
right: 0;
width: 10%;
display: flex;
overflow: auto;
justify-content: center;
}
.send-btn:hover {
background-color: #ff9e3d;
color: white;
}
目前它看起来像这样:
还有,有没有办法去掉消息字段右下角的灰色边框?
1条答案
按热度按时间4xrmg8kj1#
更改您的CSS: