1
0

new_chat.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="zh-Hans">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>聊天室 - {{ roomid }}</title>
  6. <style>
  7. body {
  8. font-family: Arial, sans-serif;
  9. background-color: #f4f4f4;
  10. margin: 0;
  11. padding: 0;
  12. color: #333;
  13. }
  14. .container {
  15. width: 80%;
  16. max-width: 600px;
  17. margin: 20px auto;
  18. padding: 20px;
  19. background-color: #fff;
  20. border: 1px solid #ccc;
  21. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  22. border-radius: 5px;
  23. /* IE9+ */
  24. }
  25. fieldset {
  26. border: 1px solid #ddd;
  27. padding: 10px;
  28. margin-bottom: 5px;
  29. }
  30. legend {
  31. font-weight: bold;
  32. padding: 0 10px;
  33. }
  34. label {
  35. display: block;
  36. margin-bottom: 5px;
  37. }
  38. input[type="text"],
  39. textarea {
  40. box-sizing: border-box;
  41. max-width: 100%;
  42. width: 100%;
  43. padding: 8px;
  44. margin-bottom: 10px;
  45. border: 1px solid #ddd;
  46. border-radius: 3px;
  47. /* IE9+ */
  48. }
  49. button {
  50. padding: 8px 15px;
  51. background-color: #007BFF;
  52. color: #fff;
  53. border: none;
  54. border-radius: 3px;
  55. /* IE9+ */
  56. cursor: pointer;
  57. }
  58. button:hover {
  59. background-color: #0056b3;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. <div class="container">
  65. <form action="/send_message" method="post">
  66. <fieldset>
  67. <legend>聊天室 - {{ roomid }}</legend>
  68. <textarea id="chatLog" rows="10" cols="50" readonly></textarea>
  69. <br>
  70. <input type="text" id="messageInput">
  71. <button id="sendButton">发送</button>
  72. <button id="exitButton">退出</button>
  73. </fieldset>
  74. </form>
  75. </div>
  76. </body>
  77. </html>