亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

客服在線系統(tǒng)布局

原創(chuàng) 2019-03-28 22:21:01 241
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>DOM實(shí)戰(zhàn):模擬智能在線客服系統(tǒng)</title> <style type="text/css"> div:nth-c
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>DOM實(shí)戰(zhàn):模擬智能在線客服系統(tǒng)</title>
	<style type="text/css">
		div:nth-child(1){
			width: 450px;height: 650px;
			background: skyblue;margin: 30px auto;
			color: #333;box-shadow: 2px 2px 2px #808080;
		}
		h2{
			text-align: center;margin-bottom: -10px;
		}

		div:nth-child(2){
			width: 400px;height: 500px;
			border: 4px double green;
			background: #efefef;
			margin: 20px auto 10px;
		}
		ul{
			list-style: none;
			line-height: 2em;
			overflow: hidden;
			padding: 15px;
		}
		table{
			width: 90%;height: 80px;
			margin: auto;
		}
		textarea{
			border: none;
			resize: none;
			background: lightyellow;
			padding: 10px;
		}
		button{
			width: 60px;
			height: 40px;
			background: seagreen;
			border: none;
		}
		button:hover{
			cursor: pointer;
			background: orange;
		}
	</style>
</head>
<body>

	<div>
		<h2>在線客服</h2>
		<div>
			<ul>
				<li></li>
			</ul>
		</div>

		<table>
			<tr>
				<td align="right"><textarea name="text" cols="50" rows="4"></textarea></td>
				<td align="left"> <button type="button">發(fā)送</button></td>
			</tr>
		</table>
	</div>

	<script type="text/javascript">
		// 獲取到頁(yè)面中的元素
		// 按鈕
		let btn = document.getElementsByTagName('button')[0];
		// 輸入內(nèi)容
		let text = document.getElementsByName('text')[0];
		// ul元素
		let list = document.getElementsByTagName('ul')[0];
		// 計(jì)數(shù)器
		let sum = 0;

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


批改老師:西門大官人批改時(shí)間:2019-03-29 09:55:46
老師總結(jié):程序代碼結(jié)構(gòu)不錯(cuò),美中不足的是,貌似沒有寫完吧?js代碼只有一部分

發(fā)佈手記

熱門詞條