如何让登录部分可以进入一个框?

问题描述 投票:0回答:1
html css box
1个回答
0
投票

id
在整个文档中必须是唯一的。其目的是在链接时识别元素。您应该使用 class 属性,而不是一次又一次使用具有相同值的 id。您的代码不完整我建议您了解HTML Forms

这是表单标签的使用示例。

<form action="/log-in.html" method="POST">
    <div class="input-box">
        <input type="text" name="name" id="name" style="background-color: rgb(255, 255, 255); border-radius: 0px;"
            placeholder="Enter your name">
        <i class='bx bx-user' class="Center" style="float: right; left: 15px; top: 132px;"></i>
        <input type="password" name="password" id="password"
            style="background-color: rgb(255, 255, 255); border-radius: 0px; top: 130px;"
            placeholder="Enter your password">
        <i class='bx bx-lock-alt' class="Center" style="float: right; left: 15px; top: 111px;"></i>
    </div>
    <input type="submit" class="Center" style="width: 170px; top: 130px;" onclick="myFunction()" value="Submit">
    <label class="Center" style="height: auto; top: 130px;"><input type="checkbox" name="Remember">Remember me</label>
</form>

为了您的方便,我希望您参考 w3schools HTML 教程

© www.soinside.com 2019 - 2024. All rights reserved.