Learning tips: Dynamically Introducing CSS

Source: Internet
Author: User
css| Dynamic | Skills because my blog is to generate static pages, if you change the skin, then the simplest two ways:
1, regenerate the page.
2, change the CSS file name.

Because rebuilding the page comparison consumes resources, I have been using a fixed link: http://www.x2y2.com/fisker/styles/default/styles.css, change the skin to modify the new CSS file.

I've also wanted to use ASP as a CSS, but with include it involves routing problems, and redrict seems to be under FF because of the MIME type problem. Perhaps modifying the ContentType type can solve the problem, but it has not been tried.

The first two days decided to adopt the way I am now.
The output ContentType type uses "TEXT/CSS", then the @import URL (), and the CSS file is introduced.

Think is a very good way: the most important point, you can easily introduce a number of CSS files.
@import url ("http://website address/styles.css");
#logo {display:none;}
Legend{display:none;}
Fieldset{border:none;}
#fisker-art-single-page{float:right Background-image:url (google-bg.gif); height:270px; Width:320px;padding-top: 9px;padding-left:11px;background-repeat:no-repeat; "}

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.