"- use the thymeleaf template to introduce the above module -- -"
Now click the link inside a label, will pass to jump to the corresponding request the background page, click on a need to change the font color, click turn red after, for example, per click an a red label on the change,
How to achieve, don't write in link links can be achieved, a jump not
CodePudding user response:
A: the link {color: # F00}/* link to the default redA: hover} {color: # 000/* hovering black
A: active} {color: # 3 f/* when the mouse to click and release blue
A: visited {color: # F0F}/* visited for pink
CodePudding user response:
Each li wrote a id, if you click on a tag is matching routing switch routing, is equal to the id give li li to add an active style, if the page is jumping the click the id of the cached, after the jump page matching value is equal to the cache id li set active styleClick on the following address is XXX/myorder routing jump directly use myorder matching
After clicking/XXX is XXX. HTML
Need cache id, if id like HTML name can also don't need to do matching cache