Website skin replacement and website skin replacement

Source: Internet
Author: User

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!

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.