<!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: Arial, sans-serif;
            background-color: #F7F7F7;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 800px;
            margin: 0 auto;
            background-color: #FFFFFF;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 20px;
        }
        h1 {
            text-align: center;
            margin-top: 0;
        }
        label {
            font-weight: bold;
        }
        input[type="text"], textarea {
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 5px;
            margin-bottom: 10px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            background-color: #4CAF50;
            color: #FFFFFF;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #3E8E41;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>用户留言</h1>
        <form action="#" method="post">
            <label for="name">姓名:</label>
            <input type="text" id="name" name="name" placeholder="请输入您的姓名" required>
            <label for="email">邮箱:</label>
            <input type="text" id="email" name="email" placeholder="请输入您的邮箱" required>
            <label for="phone">电话:</label>
            <input type="text" id="phone" name="phone" placeholder="请输入您的电话" required>
            <label for="message">留言:</label>
            <textarea id="message" name="message" placeholder="请输入您的留言" rows="5" required></textarea>
            <input type="submit" value="提交留言">
        </form>
    </div>
</body>
</html>
用html+css写一个手机+电脑用户留言页面

原文地址: https://www.cveoy.top/t/topic/3Se 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录