摘要:<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content=&quo
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>智能在线客服</title>
</head>
<style>
*{
margin: 0;
padding: 0;
}
body{
font-family: "微软雅黑";
color: #333;
}
.box{
width: 500px;
height: 700px;
background: #e9eff8;
margin: 40px auto;
}
h2{
text-align: center;
line-height: 40px;
}
.count{
width: 96%;
height: 75%;
margin: 0 auto;
}
.count ul{}
.count ul li{
list-style: none;
}
.input{
width: 100%;
height: 18%;
border-top: solid 1px #666;
position: relative;
}
textarea{
display: block;
width: 100%;
height: 100%;
background: #e9eff8;
outline: none;
font-size: 18px;
padding: 8px 2%;
border: none;
resize: none;
}
button{
width: 78px;
height: 34px;
background: #94b9ea;
border-radius: 6px;
border: none;
outline: none;
position: absolute;
right: 12px;
bottom: 6px;
font-size: 18px;
font-family: "微软雅黑";
line-height: 34px;
cursor: pointer;
}
button:hover{
background: #649be5;
color: #fff;
}
</style>
<body>
<div class="box">
<h2>在线客服</h2>
<hr>
<div class="count">
<ul>
<li></li>
</ul>
</div>
<div class="input">
<textarea name="" id="txt" cols="30" rows="10"></textarea>
<button class="btn">提交</button>
</div>
</div>
<script>
(function(){
var oTxt = document.getElementById('txt'),
oBtn = document.getElementsByClassName('btn')[0];
console.log(oTxt.value)
console.log(oBtn)
})();
</script>
</body>
</html>总结:还没有智能。
批改老师:查无此人批改时间:2019-04-19 09:34:34
老师总结:完成的不错,做项目的时候,尽量备注清楚,特别php和js,以后可以直接用。继续加油