Home  >  Article  >  Web Front-end  >  CSS样式更改_html/css_WEB-ITnose

CSS样式更改_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:36:201160browse



如第二幅图,dd标签下嵌套了a标签,dd标签的样式如图一。点击后,就把CSS样式改成了图一中的 2 。还要跳转页面,而且点击第二个dd,第一个的CSS样式就回到初始状态。我自己试了下,给A标签加上JS后虽然有改变但当页面跳转后就dd标签的CSS样式就回归初始化了!该如何整?


回复讨论(解决方案)

因为页面跳转会刷新页面的。。。。
所以你得将class记录下来,具体要看你代码怎么实现。

页面跳转会刷新页面

那你就别跳转页面?。。。

嗯,很简单的操作,新手!!呵呵呵

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn