jq(".1st").click(
function() {
jq(this).next("div").slideToggle("normal");
jq(this).toggleClass(this).attr("id","standfeat2");
}
);
当我单击下拉按钮时,它会下拉一条消息,然后我希望它在再次单击时切换回原始类“standfeat”。我发誓我什么都试过了,我知道这很简单。我在 2 个 css id 之间切换。一个有 + 一个有 - 。感谢您提前提供的所有帮助!
这是我的 CSS:
#standfeat {
color:#185596;
font-size:24px;
padding-left:40px;
background: url(../images/standfeat.png) no-repeat 4px 50%;
line-height:24px;
cursor:pointer;
margin:30px 0px;
}
#standfeat2 {
color:#185596;
font-size:24px;
padding-left:40px;
background: url(../images/standfeat2.png) no-repeat 4px 50%;
line-height:24px;
cursor:pointer;
margin:30px 0px;
}