I have a html page with two CSS files - one for a light theme and one for a dark theme. When I click the respective button, the theme changes to either light.css or dark.css.
However, whenever I refresh the page, reload the page, go back etc. It changes back to the default css (being the light.css file).
Is there any way I can get it to stay on the dark.css theme when I click the button and refresh the page?
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…