Website skin replacement and website skin replacement
The website is always amazing. Let's summarize it today. I wrote two ideas.
First, you must create a css folder to store css files of different colors: blue.css; red.css; yellow.css; green.css. Write the style to be changed in these files.
The next step is the html file. The first approach is to write only one link tag (not recommended. Continue to read the reason ). The Code is as follows:
1 <! --Index.html --> 2
The first approach is to write only one link and then add the style sheet to the head. However, more and more page style sheets are generated, so it is not recommended.
The second approach is to write four link tags, and then adjust the availability of the link to enable website skin replacement. The Code is as follows:
1
Note that the custom attribute data-color of the html section in the two methods is color and number.
If any error occurs, please correct it!