From e2fe179493874b6183563d6da764f5d1749031fe Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Fri, 10 Jul 2020 11:58:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E7=95=8C=E9=9D=A2=E8=87=AA?= =?UTF-8?q?=E9=80=82=E5=BA=94=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/html/chat_page.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/static/html/chat_page.html b/static/html/chat_page.html index 9c72206..63ebf80 100644 --- a/static/html/chat_page.html +++ b/static/html/chat_page.html @@ -25,7 +25,7 @@ position: relative; } .chatBox{ - max-height: 500px; + max-height: 600px; overflow-y: auto; overflow-x: hidden; margin-bottom: 80px; @@ -48,6 +48,7 @@ position: relative; border-radius: 5px; display: inline-block; + margin-left: 6px; } .chatContent:after { content: ''; @@ -97,7 +98,7 @@ type="success"> - +
<{v.name}>
<{v.content}>
@@ -106,10 +107,10 @@
<{v.time}>
-
- - 发送 -
+ +
+ + 发送
@@ -309,9 +310,15 @@ } }); }, + initCss(){ + $(function () { + $(".chatBox").css("max-height",$(window).height()); + }); + }, }, created: function () { + this.initCss(); this.initConn(); //加载历史记录 this.msgList=this.getHistory();