html登录代码

<style>

* {

padding: 0;

margin: 0;

box-sizing: border-box;

}

li {

list-style: none;

}

a {

text-decoration: none;

}

body {

background-color: rgb(10, 158, 133);

}

.login {

text-align: center;

margin-top: 100px;

}

.login ul li input[type=text],

.login ul li input[type=password] {

font-size: 16px;

}

.login ul li input {

width: 275px;

height: 40px;

margin-top: 20px;

}

.login ul li input[type=button] {

width: 100px;

height: 40px;

}

</style>

</head>

<body>

<form class="login">

<h2>登录</h2>

<ul>

<li>

用户名:<input type="text">

</li>

<li>

密&emsp;码:<input type="password">

</li>

<li><input type="button" value="登录"></li>

<li>还没有账号?<a href="注册.html">点击注册</a></li>

</ul>

</form>

</body>

2.注册

代码如下(示例):

<style>

* {

padding: 0;

margin: 0;

box-sizing: border-box;

}

li {

list-style: none;

}

a {

text-decoration: none;

}

body {

background-color: rgb(10, 158, 133);

}

.post {

text-align: center;

margin-top: 100px;

}

.post ul li input[type=text],

.post ul li input[type=password],

.post ul li input[type=email] {

font-size: 16px;

}

.post ul li input {

width: 275px;

height: 40px;

margin-top: 20px;

}

.post ul li input[type=submit] {

width: 100px;

height: 40px;

}

</style>

</head>

<body>

<form class="post">

<h2>注册</h2>

<ul>

<li>用户名:<input type="text"></li>

<li>密&emsp;码:<input type="password"></li>

<li>邮&emsp;箱:<input type="email" required="required"></li>

<li><input type="submit" value="注册"></li>

<li>已有帐户?<a href="登录.html">点击登录</a></li>

</ul>

</form>

</body>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值