在线客服案例HTML css样式

原创 2018-11-30 22:42:10 355
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>DOM实战模拟智能在线客服系统</title> <style type="text/css"> div:nth-child(1
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>DOM实战模拟智能在线客服系统</title>
<style type="text/css">
div:nth-child(1){
width: 450px;
height: 650px;

margin: 30px auto;
color: #333;

}
h2{
text-align: left;
margin-bottom: -10px;

}
.div2{
width: 100%;
height: 500px;


}
ul{
list-style: none;
line-height: 2em;
overflow: hidden;

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

}
textarea{

height: 40px;


}
button{
width: 50px;height: 46px;background-color:seagreen;color: white;border: none;
}
button:hover{
cursor: pointer;background-color:orange;
}
</style>
</head>
<body>
<div>
<div style="width: 100%;background-color:#000;height: 50px;line-height: 50px;">
<h2>&nbsp;<&nbsp;&nbsp;小冰</h2>
</div>
<div>
<ul>
<li></li>
</ul>
</div>
<table>
<tr>
<td><textarea name="text" cols="50" rows="4"></textarea></td>
<td><button>发送</button></td>
</tr>
</table>
</div>
<script type="text/javascript">
let btn = document.getElementsByTagName('button').item(0);

</script>
</body>
</html>

{MPEOY~G9PYXP}SL[W5)`FN.png

批改老师:灭绝师太批改时间:2018-12-01 09:27:52
老师总结:布局样式要讲究点呀!刚好练习一下前端布局!

发布手记

热门词条