在HTML中表单可不可以放在div标签中
<body class="bg">
<div class="square">
<form>
<h3 class="login-title"></h3>
<input type="text" name="username" placeholder="用户名">
<br>
<input type="password" name="password" placeholder="密码">
<br>
<input type="reset" name="reset" value="重置">
<input type="submit" name="submit" value="提交">
</form>
</div>
</body>
23
收起
正在回答
2回答
同学你好,可以通过margin边距来实现,如下:

这个方法会在后面学到,目前阶段先了解一下哦。
祝学习愉快~
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星