1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
| <!DOCTYPE html> <html lang="en">
<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>豆瓣网添加页</title> <style> body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-size: cover; background-position: center; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; }
h1 { color: #238ccd; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); margin-bottom: 20px; }
.nav-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.nav-links a { background-color: #238ccd; color: white; text-decoration: none; border-radius: 20px; padding: 10px 20px; transition: background-color 0.3s ease; }
.nav-links a:hover { background-color: #1a6fa3; }
img { width: 500px; max-width: 90%; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); margin-bottom: 30px; }
form { background-color: rgba(255, 255, 255, 0.9); padding: 30px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); width: 100%; max-width: 400px; }
form p { display: flex; flex-direction: column; margin-bottom: 20px; }
form label { margin-bottom: 5px; font-weight: 600; color: #333; }
form input[type="text"] { padding: 10px; border: 1px solid #ccc; border-radius: 5px; font-size: 16px; }
form input[type="submit"] { background-color: #238ccd; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; transition: background-color 0.3s ease; }
form input[type="submit"]:hover { background-color: #1a6fa3; }
@media (max-width: 600px) { body { padding: 20px; }
.nav-links { flex-wrap: wrap; } } </style> </head>
<body> <h1>欢迎使用豆瓣网</h1>
<div class="nav-links"> <a href="/">首页</a> <a href="/list">电影类型列表</a> <a href="/add">添加电影类型</a> <a href="/addMovie">添加电影</a> <a href="/zhu" target="_blank">查看柱状图</a> <a href="bing" target="_blank">查看饼状图</a> </div>
<img src="static/py11.png" alt="">
<form action="/addSubmit" method="post"> <p> <label for="id">编号:</label> <input type="text" name="tid"> </p> <p> <label for="name">名称:</label> <input type="text" name="tname"> </p> <p> <label for="content">内容:</label> <input type="text" name="tcontent"> </p> <p> <input type="submit" value="添加"> </p> </form> </body>
</html>
|