点击查看运行
html部分
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>小琴robot</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div class="wrapper">
<p class="name">小琴robot</p>
<div class="content-box">
<div class="robot">
<div class="avitor"></div>
<div class="text">想我了吗(●'◡'●)</div>
</div>
</div>
<div class="input-box">
<input type="text" name="" id="inp" placeholder="你想说点啥~">
<button type="" id="submit">发送</button>
</div>
</div>
<script src="./ajax.js"></script>
<script src="./index.js"></script>
</body>
</html>
css部分
*{
padding:0;
margin:0;
}
::-webkit-scrollbar{
display: none;
}
html,body{
height:100%;
}
.wrapper{
width:600px;
height:100%;
margin:0 auto;
background-color:rgba(100,112,154,0.2);
border-radius: 10px