abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>智能客服</title>  
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>智能客服</title> <style type="text/css"> div:nth-child(1) { width: 450px; height: 650px; background-color: lightskyblue; 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-color: #efefef; margin: 20px auto 10px; } ul { list-style: none; line-height: 2em; /*border: 1px solid red;*/ overflow: hidden; padding: 15px; } table { width: 90%; height:80px; margin: auto; } textarea{ /*width: 300px;*/ border: none; resize: none; background-color: lightpink; } button { width: 60px; height: 40px; background-color: seagreen; color: white; border: none; /*text-align: left;*/ } button:hover { cursor: pointer; background-color: lightyellow; } </style> </head> <body> <h2>在線客服</h2> <div> <div> <ul> <li></li> </ul> </div> <table> <tr> <td><textarea name="text" id="" cols="50" rows="8"></textarea></td> <td><button type="button" style="color: #000;">發(fā)送</button></td> </tr> </table> </div> <script> let btn = document.getElementsByTagName('button')[0]; let text = document.getElementsByName('text')[0]; let list = document.getElementsByTagName('ul')[0]; let sum = 0; </script> </body> </html>
Correcting teacher:天蓬老師Correction time:2018-11-23 17:17:26
Teacher's summary:代碼寫得不完整,業(yè)務(wù)邏輯沒有寫出來(lái), 例如用戶點(diǎn)擊發(fā)送之后,內(nèi)容是如何進(jìn)入文本域中的,還有內(nèi)容過多顯示不下怎么辦?
你這僅僅是一個(gè)界面而已, 基本上不會(huì)有什么用,重新寫一下吧