Using Web standards establishment of the first four days: Call Style Sheets
Related Tags:
Use standard design web site, the transition is the main method used XHTML CSS, css style sheet is essential. This requires all Web designers must be familiar CSS, if you did not previously used, then began studying it now. To make the web site standards, but not the design of CSS is not beautiful pages.
In fact, the performance of all local needs using CSS to achieve. We have in the past practice of using table for positioning and layout, and now, to change the location and layout to DIV. This is the way of thinking changes, a beginning, some are not accustomed to. Oh, there will be resistance to any change, in order to enjoy the standard of the "benefits" and give up some of the old traditional practice is worth it.
Calling external style sheetIn the past, we usually use two kinds of ways to use style sheets:
- Pages embedded law: the style sheet will be written directly in the head area code pages. Something like this:
<style Type="text/css"> <! - body (background: white; color: black;) -> </ style>
- External call law: write in the style sheet will be an independent. Css document, and then head in the area of the page code similar to the following calls.
<link Rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
In line with the design of the web standards, we use an external call, the benefits self-evident, you can not only modify revised pages. Css document and change the style pages. If all the pages are calling with a style sheet files, to a style sheet document, all documents can be changed styles.
Two-table method called style sheetShow some of the original site with standard code, you may see that in the style sheet called the two places are as follows:
<link Rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style Type="text/css" media="all"> @ import url (css/style01.css); </ style>
Why write two?
In fact, under normal circumstances with the law calls (that is the first sentence) was sufficient. Here I use a dual-table calls only examples. The "@ import" command for the importation of style sheets. "@ Import" command in netscape 4.0 version of the browser is null and void. In other words, when you want some effect in netscape 4.0 browser hidden in 4.0 above, or other browsers also revealed that the time, you can use the "@ import" command Method Invocation style sheet.
- The definition and use CSS style
- Default style sheet
- Css style (table)
- How to management style!
- Layout style control
- [Original] css style tips: on the links-style settings!
- Css style details, page scrolling Style
- CSS style names on the underlined
- Cascading Style Sheets (CSS cascading style sheets)
- Css style Xi summary
- Css underscore style
- Establish a Web site's style
- XHTML CSS style into what?
- Italic style of navigation
- Change the style file box
- Web2.0 visual style evolution
- Css page of the Style rolling - css style
- Home style developed
- CSS - Cascading Style Sheets
- No. 1 on the css style sheet




