| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <!DOCTYPE html>
- <html lang="zh-Hans">
- <head>
- <meta charset="UTF-8">
- <title>聊天室 - {{ roomid }}</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- background-color: #f4f4f4;
- margin: 0;
- padding: 0;
- color: #333;
- }
- .container {
- width: 80%;
- max-width: 600px;
- margin: 20px auto;
- padding: 20px;
- background-color: #fff;
- border: 1px solid #ccc;
- box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
- border-radius: 5px;
- /* IE9+ */
- }
- fieldset {
- border: 1px solid #ddd;
- padding: 10px;
- margin-bottom: 5px;
- }
- legend {
- font-weight: bold;
- padding: 0 10px;
- }
- label {
- display: block;
- margin-bottom: 5px;
- }
- input[type="text"],
- textarea {
- box-sizing: border-box;
- max-width: 100%;
- width: 100%;
- padding: 8px;
- margin-bottom: 10px;
- border: 1px solid #ddd;
- border-radius: 3px;
- /* IE9+ */
- }
- button {
- padding: 8px 15px;
- background-color: #007BFF;
- color: #fff;
- border: none;
- border-radius: 3px;
- /* IE9+ */
- cursor: pointer;
- }
- button:hover {
- background-color: #0056b3;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <form action="/send_message" method="post">
- <fieldset>
- <legend>聊天室 - {{ roomid }}</legend>
- <textarea id="chatLog" rows="10" cols="50" readonly></textarea>
- <br>
- <input type="text" id="messageInput">
- <button id="sendButton">发送</button>
- <button id="exitButton">退出</button>
- </fieldset>
- </form>
- </div>
- </body>
- </html>
|