一 效果图
二 html代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<form action="">
<input type="text" name="" value="" placeholder="账号">
<br />
<input type="password" name="" value="" placeholder="密码">
<br />
<input class="c" type="button" name="" value="登录">
<p>
版权所有©hqyj.com
</p>
</form>
</body>
</html>
三 css代码
input {
width: 333px;
height: 51px;
border-radius: 22px;
margin-bottom: 20px;
border:none;
padding-left: 20px;
}
.c{
border-radius: 0px;
background-image: url(images/bgt.jpeg);
font-size: 30px;
color: white;
margin-left: 10px;
}
body{
background-image: url(images/bgt.jpeg);
}
form{
position: absolute;
left: 50%;
top: 50%;
}
p{
text-align: center;
margin-top: -10px;
}