Page using CSS method basically has 3 kinds: inline add style attribute values, page head inline invocation and links to outside calls, including reference outside has two kinds: the link and @ import. External references link in one of two ways CSS and @import way, respectively is:

XML/HTML code to the

  code is as follows:  


<Link rel="stylesheet" rev="stylesheet" href="http://www.jb51.net//web/CSS file" type="text/CSS" media="all"/>

XML/HTML code to the

  code is as follows:  


<Style type="text/CSS" media="screen" >
@import url (" CSS file ");
</style>

both external references the way CSS, but there is a difference between
code is as follows:


– – – – – – – -
@ import &other; Sub1. Css”;
@ import &other; Sub2. Css”;
sub1. CSS
– – – – – – – -
p {color: red; }
sub2. CSS
– – – – – – – -
. Myclass {color: blue}

this is more conducive to modify and expand.
the monkey tip: do have a disadvantage, can produce too many HTTP requests to web server, is a file before, and now it is for two or more files to the server of the pressure, traffic large websites or use caution. Interested can look at the website such as sina home page or column page code, they always write in HTML, CSS or javascript directly without an external file.


This concludes the body part