Using the inheritance of the template engine, how to change the background color of the current page connection; base.htm of the base template, including the navigation bar;
1. htm 2.htm 3.htm is a column that inherits base.htm;
For example, when you click the link of navigation 3.htm, the page 3.htmis displayed. in 3.htm, the background color of the three topics in the navigation changes;
1. method: JavaScript can be used to obtain the current URL and then compare the link in the navigation bar. if the same, the background color is changed;
2. method: it is very troublesome to change each topic into a module and overwrite the corresponding module each time it is loaded;
3. for a normal method, I think other people's programs do not use the above method or AJAX. how can I do this? thank you.
Reply to discussion (solution)
If you do this, you just need to activate the 3.html navigation directly?
Change the css file