我目前正在构建一个包含多个字段和Facebook登录的登录页面。在这个页面上,我有2个输入,用户名和密码,以及其他三个div。这些div是图形元素和facebook登录按钮。
我在密码字段方面遇到了困难。出于某种原因,大多数文本框都不可点击。我相信这是因为图形div与此文本框重叠。但是,当我更改z索引时,没有任何反应。为什么会这样?
HTML:
<div id="login-banner" class="login-popup">
<a href="#" class="close"><p class="herro">x</p></a>
<form method="post" class="signin" action="#">
<fieldset class="textbox">
<label class="signup_email">
<span>Email</span>
<input id="signup_email" name="email" value="" type="text" autocomplete="on" placeholder="E-Mail">
</label>
<label class="signup_password_two">
<span>Password</span>
<input id="signup_password_two" name="password" value="" type="text" autocomplete="on" placeholder="Password">
</label>
<button class="submit button" type="button">Sign Up</button>
<p><a class="forgot" href="#">Forgot your password?</a></p>
</fieldset>
</form>
<div id="vertical_one"></div>
<div id="OR"><p>or</p></div>
<div id="vertical_two"></div>
<div id="facebook_login"><img src="{% static 'home/facebook_login.gif' %}" /></div>
</div>
CSS:
* Login Banner CSS: Begin */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
.content_splash #mask {
display: none;
background: #FFFFFF;
position: fixed;
left: 0;
top: 0;
z-index: 11;
width: 100%;
height: 100%;
opacity: 0.8;
}
.content_splash #login-banner.login-popup {
display: none;
background: #FFFFFF;
padding: 10px;
width: 480px;
border: 2px solid #ddd;
float: left;
font-size: 1.2em;
position: fixed;
top: 50%;
left: 50%;
z-index: 99999;
box-shadow: 0px 0px 20px #999;
/* CSS3 */
-moz-box-shadow: 0px 0px 20px #999;
/* Firefox */
-webkit-box-shadow: 0px 0px 20px #999;
/* Safari, Chrome */
border-radius: 3px 3px 3px 3px;
-moz-border-radius: 3px;
/* Firefox */
-webkit-border-radius: 3px;
/* Safari, Chrome */;
}
.content_splash #login-banner .herro {
margin-left: 465px;
margin-top: -6px;
}
.content_splash fieldset {
border: none;
}
.content_splash form.signin .textbox label {
display: block;
padding-bottom: 7px;
}
.content_splash form.signin .textbox span {
display: block;
}
.content_splash form.signin p, form.signin span {
color: #999;
font-size: 11px;
line-height: 18px;
}
.content_splash form.signin .textbox input {
background: #666666;
border-bottom: 1px solid #333;
border-left: 1px solid #000;
border-right: 1px solid #333;
border-top: 1px solid #000;
color: #fff;
border-radius: 3px 3px 3px 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
font: 13px Arial, Helvetica, sans-serif;
padding: 6px 6px 4px;
width: 200px;
}
.content_splash form.signin input:-moz-placeholder {
color: #bbb;
text-shadow: 0 0 2px #000;
}
.content_splash form.signin input::-webkit-input-placeholder {
color: #bbb;
text-shadow: 0 0 2px #000;
}
.content_splash .button {
background: -moz-linear-gradient(center top, #f3f3f3, #dddddd);
background: -webkit-gradient(linear, left top, left bottom, from(#f3f3f3), to(#dddddd));
background: -o-linear-gradient(top, #f3f3f3, #dddddd);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f3f3f3', EndColorStr='#dddddd');
border-color: #000;
border-width: 1px;
border-radius: 4px 4px 4px 4px;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
color: #333;
cursor: pointer;
display: inline-block;
padding: 6px 6px 4px;
margin-top: 10px;
font: 12px;
width: 214px;
}
.content_splash .button:hover {
background: #ddd;
}
.content_splash #login-banner.login-popup #vertical_one{
position: absolute;
background: -webkit-gradient(linear, 1 0, 100% 0, from(#e2e3e4), to(#e2e3e4), color-stop(50%, black));
width: 1px;
height: 75px;
margin-top: -203px;
margin-left: 250px;
}
.content_splash #login-banner.login-popup #vertical_two{
position: absolute;
background: -webkit-gradient(linear, 1 0, 100% 0, from(#e2e3e4), to(#e2e3e4), color-stop(50%, black));
width: 1px;
height: 75px;
margin-top: -110px;
margin-left: 250px;
}
.content_splash #login-banner.login-popup #OR{
font-size: 13px;
position: absolute;
margin-top: -141px;
padding-left:243px;
color: black;
}
.content_splash #login-banner.login-popup #facebook_login{
position: absolute;
padding-left: 270px;
margin-top: -138px;