我在这里遇到了文本与 Emoji button 重叠的问题。基本上我希望文本在到达表情符号之前停止。我试过这个,出人意料地对我不起作用http://jsfiddle.net/36bw0nmo/14/
谢谢
这是我的小提琴https://jsfiddle.net/w0s4y5nk/14/
textarea#sendMessage {
height:50px;
width: calc(100vw - 15px);
position: absolute;
bottom: 16px;
resize: none;
border: none;
font-size: 13px;
padding: 5px 5px 5px 10px;
border: solid 5px
}
#myButton {
position: absolute;
bottom: 10px;
right: 5px;
margin-left: 60px;
}
<textarea id="sendMessage"> </textarea>
<p id="myButton" role="img" onclick='$("#picker").toggle()'>🙂</p>
<emoji-picker id="picker"> </emoji-picker>