代码成就万世基积沙镇海,梦想永在凌云意意气风发|

又一岁荣枯

园龄:3年4个月粉丝:11关注:6

html+css+js(登录页)

直接上代码

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>登陆页面</title>

	<style type="text/css">
	*{
		margin: 0px;
		padding: 0px;
		font-family: "microsoft yahei";
	}
		html,body{
			background-image: url(img/jld.png);
			background-size: 100% 100%;
			height: 100%;
		}
		.login{
			background-color: #FFFFFF;
			top: 25%;
			position: absolute;
			left: 70%;
			right: 5%;
			bottom: 25%;
			border-radius: 15px;
		}
		.container{
			position: relative;
		}
		.tips,.title,.p,.l,.u{
			position: absolute;
			/* border: 1px solid red; */
			width: 100%;
		}
		input{
			height: 35px;
			background-color: #f2f2fa;
			border: 0px;
			border-radius: 5px;
			width: 80%;
		}
		button{
			height: 35px;
			background-color: #467fe6;
			border: 0px;
			border-radius: 5px;
			width: 80%;
			color: #FFFFFF;
			font-size: 16px;
		}
		.title{
			top: 0%;
			bottom: 80%;
			text-align: center;
			font-size: 25px;
			font-weight: bold;
			padding-top: 10px;
			box-sizing: border-box;
		}
		.u{
			top: 20%;
			bottom: 60%;
			left: 10%;
		}
		.p{
			top: 40%;
			bottom: 40%;
			left: 10%;
		}
		.l{
			top: 60%;
			bottom: 20%;
			left: 10%;
		}
		.tips{
			top: 80%;
			bottom: 0%;
			font-size: 14px;
			color: #b9b9b9;
			text-align: center;
		}
	</style>

</head>
<body>

	<div class="login">
			<div class="title">
				废物自学系统
			</div>
			<div class="u">
				<input type="text"/>
			</div>
			<div class="p">
				<input type="password" />
			</div>
			<div class="l">
				<button>登陆</button>
			</div>
			<div class="tips">
				推荐使用YouTube访问
			</div>
	</div>

</body>
</html>

效果展示如图
![image](https://img20image

本文作者:又一岁荣枯

本文链接:https://www.cnblogs.com/java-six/p/15768775.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   又一岁荣枯  阅读(202)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起