免费试用:最火的人工智能查询工具
     最强AI人工智能聊天工具
     对话机器人解答疑难问题
星外智问直连原始API接口(GPT-4o)
➡️未登录受限条数,请登陆使用完整服务>>>➡️
请输入您要问的问题:


查下百度  查下必应

以下是单个问题的回复:

问:html做一个登录页面
GPT答: 7i24.cn
以下是一个简单的HTML登录页面的示例:

```html
<!DOCTYPE html>
<html>
<head>
  <title>登录页面</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f2f2f2;
    }
    
    .container {
      max-width: 400px;
      margin: 0 auto;
      padding: 20px;
      background-color: #fff;
      border-radius: 5px;
      box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    }
    
    h1 {
      text-align:center;
    }
    
    .form-group {
       margin-bottom:15px; 
     }
     
     label {
       display:block; 
       font-weight:bold; 
       margin-bottom:5px; 
     }
     
     input[type="text"], input[type="password"]{
        width :100%;  
        padding :8 px ;  
        height :30 px ;  
        border-radius :4 px ;  
        border:solid thin #aaa ;
     }

     button{
         width :100% ;
         padding :10 px ;
         background -color:#008080 ;
         color:#fff ;
         cursor:pointer ;

         

         
         
}
button:hover{
background -color:#006666 ;


}

.error-message{
   color:red;

}

.success-message{

   color:green;

}


</style>

</head>

<body>

<div class="container">
<h1>登录</h1>

<form id="login-form" action="" method="post">

<div class = "form-group">
<label for ="username">用户名:</label>
<input type ="text" id ="username" name = "username" required/>
</div>


<div class = "form-group">
<label for ="password">密码:</label>
<input type ="password" id ="password" name = "password" required/>
</div>

<button type="submit">登录</button>

<div id="message"></div>


</form>
</div>

<script>
document.getElementById("login-form").addEventListener("submit", function(event){
  event.preventDefault();
  
  var username = document.getElementById("username").value;
  var password = document.getElementById("password").value;
  
  if(username === "admin" && password === "123456"){
    document.getElementById("message").innerHTML = "<p class='success-message'>登录成功!</p>";
    // 在这里添加重定向到其他页面的代码
  } else {
    document.getElementById("message").innerHTML = "<p class='error-message'>用户名或密码错误,请重试。</p>";
  }
});
</script>

</body>
</html>
```

这个示例包含一个简单的表单,用户需要输入用户名和密码。当用户点击“登录”按钮时,JavaScript代码将检查输入的用户名和密码是否与预设值匹配,并显示相应的消息。你可以根据自己的需求进行修改和扩展。
一星  二星  三星  四星  五星 

互联网非法外之地,请不要输入不良内容
 查下百度 查下必应 06-19 12:51:31



chatGPT中国版--星外智问--8v6.CN
当前运行网址:haoadm.com
客服微信:xwgdd_com APP下载 怎么问 识别真假GPT4 使用GPT赚钱 退出登陆