透明登录界面的简单实现

1.直接上效果图:
在这里插入图片描述
不同浏览器兼容不同,效果有差异。
2.源码:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>透明登录界面</title>
		<style type="text/css">
			body {
				width: 800px;
				height: 520px;
			    background-image: url("img/back.jpg");;
			    background-repeat: no-repeat;
			}
			 
			#login_frame {
			    width: 400px;
			    height: 260px;
			    padding: 13px;
			    position: absolute;
			    left: 40%;
				right: 50%;
			    top: 60%;
				margin-bottom: 50%;
			    margin-left: -100px;
			    margin-top: -200px;
			 
			    background-color: rgba(240, 255, 255, 0.25);
			 
			    border-radius: 10px;
			    text-align: center;
			}
			 
			
			 
			 
			
			 
			.text_class {
			    width: 280px;
			    height: 26px;
				border-top-left-radius: 5px;
			    border-top-right-radius: 5px;
			    border-bottom-right-radius: 5px;
			    border: 0;
			}
			 
			#btn_login {
			    font-size: 14px;
			    font-family: 宋体;
			 
			    width: 120px;
			    height: 28px;
			    line-height: 28px;
			    text-align: center;
			 
			    color: white;
			    background-color: #3BD9FF;
			    border-radius: 6px;
			    border: 0;
				
			    float: 160px;
			}
			#btn_regis {
			    font-size: 14px;
			    font-family: 宋体;
			    width: 120px;
			    height: 28px;
			    line-height: 28px;
			    text-align: center;
			    color: white;
			    background-color: #3BD9FF;
			    border-radius: 6px;
			    border: 0;
				
			    float: 160px;
		
			 
			 
			#forget_pwd:hover {
			    color: blue;
			    text-decoration: underline;
			}
			 
			#login_control {
			    padding: 0 28px;
			
			}
		</style>
	</head>
	<body>
		<div id ="login_frame">
			<from method ="post" action="login.js">
				<div>
					<p>账号  <input type="text" id="username" placeholder="请输入用户名" class="text_class"></lable></p>
				</div>
				
				<div
					<p>密码  <input type="text" id="password" placeholder="请输入密码" class="text_class"></lable></p>
				</div>
				
				
				<div id="login_control">
					<input type="button" id="btn_login" value="登录" οnclick="login();"/>

					<input type="button" id="btn_regis" value="注册" οnclick="login();"/>
				</div>	
        </div>


			</from>
		</div>
	</body>
</html>

希望对你有帮助!

  • 7
    点赞
  • 43
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值