购买留言 - 留下您的宝贵意见
<!DOCTYPE html>
<html>
<head>
<title>购买留言 - 留下您的宝贵意见</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f2f2f2;
margin: 0;
padding: 0;
}
h1 {
text-align: center;
margin-top: 60px;
}
form {
width: 500px;
margin: 50px auto;
background-color: #fff;
padding: 25px;
border-radius: 20px;
box-shadow: 0 0 20px rgba(0,0,0,0.2);
}
label {
display: block;
margin-bottom: 10px;
font-size: 25px;
font-weight: bold;
text-align: right;
padding-right: 10px;
}
textarea {
width: 95%;
height: 150px;
padding: 10px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 5px;
resize: none;
}
input[type='submit'] {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
font-size: 16px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
textarea {
margin-bottom: 15px;
}
<pre><code> input[type='submit'] {
margin-top: 15px;
}
input[type='submit']:hover {
background-color: #3e8e41;
}
/*添加表格样式*/
table {
margin: 50px auto;
border-collapse: collapse;
width: 100%; /* 设置表格宽度为 100% */
}
td {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}
</style>
</code></pre>
</head>
<body>
<h1>购买留言</h1>
<form action='save_message.php' method='POST'>
<label for='message'>购买信息:</label>
<textarea id='message' name='message'></textarea>
<input type='submit' value='提交'>
</form>
<pre><code><table>
<tr>
<td>表格1</td>
<td>表格2</td>
<td>表格3</td>
<td>表格4</td>
</tr>
<tr>
<td>表格5</td>
<td>表格6</td>
<td>表格7</td>
<td>表格8</td>
</tr>
<tr>
<td>表格9</td>
<td>表格10</td>
<td>表格11</td>
<td>表格12</td>
</tr>
</table>
</code></pre>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/mSeI 著作权归作者所有。请勿转载和采集!