javascript js 输入框不能输入

本文介绍了一个用于500MI网站的会员登录弹窗设计,该弹窗使用了绝对定位,并设置了较高的层级显示优先级(z-index:1000),确保在页面上的可见性和可用性。登录框居中显示,包含用户名与密码输入框及登录、取消按钮。

可以设置

z-index:1000

<div id=win
	 style="display:none;
     POSITION:absolute;
     left:50%;
     top:50%;
     width:200px;
     height:200px;
     border:1px solid #888;
     background-color:#edf;
     text-align:center;z-index:1000">500mi会员登录<br>
	<div id="login">
		<h1>500MI</h1>
		<form method="post">
			<input type="text" required="required" placeholder="用户名" name="u"></input>
			<br>
			<input type="password" required="required" placeholder="密码" name="p"></input>
			<br>
			<button class="but" onclick="closeLogin()">取消</button><button class="but" type="submit">登录</button>
		</form>
	</div>
</div>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值