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

CSS样式更改_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:36:20
Original
1223 people have browsed it



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


回复讨论(解决方案)

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

页面跳转会刷新页面

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template