快捷导航

css设置的颜色,在添加jquery后,没有显示了。

css中对“快速登录”设置了灰色。但是添加了点击事件后,“快速登录”设置的灰色不起作用了。麻烦老师帮忙看下。谢谢。







LoginTraining






快速登录
账号密码登录




暂无















忘了密码?
|
注册新账号
|
意见反馈












-------------------------------------------------------------
*{
margin: 0px;
padding: 0px;
}
html,body{
width: 100%;
height: 100%;
background-color: #999;
}
.main{
width: 15%;
height: 35%;
min-width: 270px;
min-height: 330px;
text-align: center;
background-color: #fff;
}
.login{
width: 100%;
height: 100%;
position: relative;
}
.login_header{
width: 100%;
height: 60px;
background-color: #000;
color: #fff;
}
a{
cursor: pointer;
}
.login_header a{
text-decoration: none;
color: #fff;
display: inline-block;
height: 60px;
line-height: 60px;
margin:0 20px;
}
.fast_login{
color: #666;
}
.psw_login{
font-weight: bold;
}
.login_page1{
display: none;
}
.login_page2{
margin-top: 40px;
}
input{
width: 80%;
height: 30px;
margin-bottom: 15px;
}
.button{
background-color: #000;
color: #fff;
border-radius: 5px;
border: none;
}
.bottom_tips{
position: absolute;
bottom: 20px;
right: 20px;
}
.bottom_tips a{
font-size: 12px;
color: #000;
text-decoration: none;
}
.bottom_tips span{
color: #666;
}


------------------------------------------------
$(function(){
var fastLogin=$('#fast_login'),
pswLogin=$('.psw_login'),
loginPage1=$('.login_page1'),
loginPage2=$('.login_page2');
console.log(loginPage1)
pswLogin.click(function(){
fastLogin.css({
color:'#666',
fontWeight:'normal'
});
pswLogin.css({
color:'#fff',
fontWeight:'bold'
});
loginPage1.hide();
loginPage2.show();
})
fastLogin.click(function(){
pswLogin.css({
color:'#666',
fontWeight:'normal'
});
fastLogin.css({
color:'#fff',
fontWeight:'bold'
})
loginPage1.show();
loginPage2.hide();
})


})

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

哎呀,不好意思。是我css设置有问题。问题已经解决。
回复

使用道具 举报

可能感兴趣的问答

发新帖
TA的信息
  • 会员所属: 注册会员
  • 认证信息: 邮箱认证手机认证
  • 微信访问
  • 手机APP