Home > Article > Web Front-end > Help ~ drop-down menu problem ~ please_html/css_WEB-ITnose
Dear experts, how do you enable the browsed menu to display browsing traces, so that browsing the second-level menu can also be reflected on the first-level menu?
In the css I wrote, only the first-level menu can display browsing traces, and it will always be displayed. If you click on something else, the browsing traces will still be displayed. Only clearing the cache can restore the original state.
The function I want to achieve is to click on which one to see visited, and the others will be normal. Then click on another one, and the other one will show visited, and the previous one will return to its original state. How should you implement it?
The code is as follows
那你只能用JS控制了的。a的伪类没有那么智能的。
而起你这样不能动态的从数据库获得,只是死的
哦哦 非常感谢
用js或者jquery控制最方便了
用js或者jquery控制最方便了
...