黑狐家游戏

点击登录跳转到新页面html,点击登录oa

欧气 3 0

点击登录 OA,开启高效办公之旅

HTML 代码:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>点击登录 OA</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f4f4f4;
    }
    form {
      width: 300px;
      margin: 0 auto;
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    h2 {
      text-align: center;
      margin-bottom: 20px;
    }
    label {
      display: block;
      margin-bottom: 10px;
    }
    input[type="text"],
    input[type="password"] {
      width: 100%;
      padding: 10px;
      margin-bottom: 20px;
      border: 1px solid #ccc;
      border-radius: 3px;
    }
    input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #4CAF50;
      color: #fff;
      border: none;
      border-radius: 3px;
      cursor: pointer;
    }
    input[type="submit"]:hover {
      background-color: #45a049;
    }
  </style>
</head>
<body>
  <form action="login.html" method="post">
    <h2>点击登录 OA</h2>
    <label for="username">用户名:</label>
    <input type="text" id="username" name="username" required>
    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required>
    <input type="submit" value="登录">
  </form>
</body>
</html>

在上述代码中,我们创建了一个简单的登录页面,用户可以在页面中输入用户名和密码,然后点击“登录”按钮提交表单,表单数据将被发送到login.html页面进行处理。

这只是一个简单的示例,实际的登录功能可能需要与服务器进行交互,验证用户的身份信息,并根据验证结果进行相应的处理,你还可以根据需要添加更多的表单元素,如验证码、记住密码等。

希望这个示例对你有所帮助!如果你有任何其他问题,请随时提问。

标签: #html

黑狐家游戏
  • 评论列表

留言评论