摘要:
&聊天室.box1{width:320px;height:500px;box-shadow: 5px 5px 5px 0 grey;border-radius:5px;background-color: slateblue;}
/* n从1开始 */
div:nth-child(2){width:300px;height:300px;border-radius:3px;background-color: #f5f5f5;margin:10px;}
li{list-style: none;color:#333;text-align: left;}
h2{color:#fff;padding:30px 10px 0px}
textarea{border:none;border-radius:3px;background-color: #fff;margin:10px;}
客服中心
var input=document.getElementsByTagName('textarea')[0];
var ul=document.querySelector('ul');
input.οnkeydοwn=function(){
if(event.keyCode==13){
var li=document.createElement('li');//****
li.innerHTML=input.value;
ul.appendChild(li);
input.value="";
}
}
批改老师:韦小宝批改时间:2019-02-16 13:11:39
老师总结:写的很不错 少个客服回复的功能哦 后期记得加上哦