Two-table method call style sheet _css/html

Source: Internet
Author: User
Using Web standards to design Web sites, the transition method is mainly based on the use of XHTML+CSS,CSS style sheets is essential. This requires all web designers must be proficient in CSS, if you are not used before, then start learning now. To make web-compliant websites, you don't know that CSS is a beautiful page to design.

In fact, all areas of performance need to be implemented using CSS. We used to use table to locate and layout, now we need to use div to locate and layout. This is a change in the way of thinking, a bit unaccustomed at first. Hehe, any change will have resistance, in order to enjoy the "benefits" of standards, it is worthwhile to abandon some old traditional practices.

External call style sheet

In the past, we used 2 ways of using stylesheets:

Page embedding: The style sheet is written directly in the head area of the page code. Similar to this:



External calling Method: Write the stylesheet in a separate. css file, and then call it in the page head area similar to the following code.



In a web-compliant design, we use external tuning, and the benefits are self-explanatory, and you can change the style of the page without modifying the page to modify only the. css file. If all the pages call the same stylesheet file, then changing the style sheet file will change the style of all the files.

Two-table method call style sheet

Looking at the original code on this page, you can see that there are 2 sentences where the style sheet is called:




Why did you write it two times?

In fact, it is sufficient to call (that is, the first sentence) with an outreach method in general. I use a two-table call here just as an example. The "@import" command is used to enter the style sheet. The "@import" command is not valid in the Netscape 4.0 version of the browser. That is, when you want some effects to be hidden in the Netscape 4.0 browser and displayed in more than 4.0 or other browsers, you can invoke the style sheet using the "@import" command method.
  • 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.