html+css网页登录练习2

今天做了第二个练习,还是有些生疏,不过比昨天好了一点。margin和padding用的不好,还要仔细学学!
参考地址:https://blog.csdn.net/Biexiansheng/article/details/70240203

<html>
<head>
<title>我的网页登录练习2</title>
<style type="text/css">
body{
margin:0 auto;
padding:0;
}
.beijing{
width:1000px;
height:1000px;
background-color:yellow;
margin:0 auto;
}
.zhongjian{
padding:150px 0px;
width:600px;
height:600px;
margin:0 auto;
text-align:center;
}
.zhongjian h1{
text-align:center;
font-size:50px;
font-weight:30px;
color:blue;
border-radius:40px;
border:1px solid white;
width:520px;
height:74px;
background-color:pink;
margin:10 auto 50 auto;/*这里要注意一下*/
}
form input{
width:300px;
height:50px;
border-radius:30px;
text-align:center;
border:0;
padding:20px 5px;
display:block;/*这里要注意一下*/
margin:10 auto 10 auto;/*上  右 下  左*//*这里要注意一下*/
font-size:30px;
font-family:"楷体";
}
form button{
width:94px;
height:46px;
border:0px;
background-color:grad;
border-radius:20px;
font-size:15px;
font-family:"黑体";
}
</style>
</head>
<body>
<div class="beijing">
<div class="zhongjian">
<h1>柠檬学院</h1>
<form><!--这里要注意一下-->
<input type="text" name="username" placeholder="请输入账号"><br />
<input type="password" name="mima" placeholder="请输入密码"><br />
<button type="submit">登&nbsp录</button>
<button type="submit">找回密码</button>
</form>
</div>
</div>
</body>
</html>

效果图如下:
在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值