在线聊天信息生成的静态页面

Original 2019-03-30 14:03:07 269
abstract:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width
<!DOCTYPE html>
<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>
<style>
.box1 {
width: 500px;
height: 600px;
background: aqua;
margin: 50px auto;
}

h2 {
text-align: center;
color: #333;
}

.box2 {
width: 90%;
height: 400px;
margin: 20px auto;
background: #fff;
color: #333;
}

ul {
list-style-type: none;
}

table{
width: 90%;
height: 80px;
margin: 5px auto;
}

textarea {
width: 350px;
height: 60px;
}

button {
width: 60px;
height: 60px;
border: none;
border-radius: 10px;
}

button:hover {
background: #ff4700;
cursor: pointer;
}
</style>
</head>

<body>
<div class="box1">
<h2>聊天框</h2>
<div class="box2">
<ul>
<li></li>
</ul>
</div>
<table>
<tr>
<td><textarea></textarea></td>
<td><button>发送</button></td>
</tr>
</table>
</div>
</body>

</html>

通过一个简单的div+css布局.将显示框,输入框,按钮都放在一个div里面,然后通过css样式使样式更好看一点

Correcting teacher:西门大官人Correction time:2019-04-01 09:49:35
Teacher's summary:作业写的不错,如果能把样式的类名:box1,box2改成有意思的名字就更完美了

Release Notes

Popular Entries