abstract:<!DOCTYPE html> <html> <head> <meta charset="UTF-8">
<!DOCTYPE html> <html> <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> * { margin: 0; padding: 0; } .main { margin: 0 auto; width: 450px; height: 680px; background: #87CEFA; box-shadow: 2px 2px 10px #888; border-radius: 10px; } h2 { text-align: center; padding: 10px 0; color: #fff; border-bottom: 2px solid #fff; } .content { width: 400px; height: 500px; background: #EFEFEF; margin: 20px auto 10px; border: 6px double lightgreen; } ul { list-style: none; } ul li { padding: 4px; } .sub { float: left; width: 480px; margin: 10px auto; position: relative; } textarea { width: 350px; height: 50px; resize: none; outline: none; position: absolute; left: 20px; border: 0; font-size: 16px; color: red; } button { width: 58px; height:50px; background: red; color: #fff; position: absolute; left: 370px; border: 0; } button:hover { background: #ff6500; } </style> </head> <body> <div> <h2>在线客服</h2> <div> <ul> <li></li> </ul> </div> <div> <textarea name="text"></textarea> <button type="button">发送</button> </div> </div> </body> </html>
Correcting teacher:天蓬老师Correction time:2019-03-08 14:19:01
Teacher's summary:这是一个静态页面布局, 等看到javascript代码, 再一起回复