CSS is the English cascading style sheets abbreviation, Chinese translation for "cascading style sheet", referred to as style sheet, it is a new technology to make Web pages.
What basics should you master before you learn CSS?
1. What is a Web page and what is a Hypertext language (HTML).
2. Use commonly used Web page editors such as Dreamweaver.
Two. Understanding CSS
The Web page design originally used HTML tags to define page documents and formats, such as title
Note: CSS requires browser support from IE4 (Internet Explorer 4.0) and NC4 (Netscape 4.0), and some effects require a newer version of browser support.
Three. How to use CSS
If you are using a version of Dreamweaver MX 2004, when defining characters such as font, color, size, and so on, look at the code and you will find that part of the head area:
<style type="text/css">
<!--
.STYLE2 {
font-size: 16pt;
font-family: "Courier New", Courier, monospace;
font-weight: bold;
color: #FF3300;
}
-->
</style>
So congratulations, you've used the CSS design page.
So in addition to this method of invoking CSS, is there anything else? The answer is "of course there is", the following is a system introduction
Mark Notation (in-line):
If you have only one HTML tag that requires a style, you can add a property to the tag
Style= ""
With individual revision styles.
Page Inline method:
<style type="text/css"> <!-- body { background : white ; color : black ; } --> </style>
External Invocation Method:<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
Call style sheet with double table method
<link rel="stylesheet" rev="stylesheet" href="css/style.css" type="text/css" media="all" />
<style type="text/css" media="all">@import url( css/style.css );</style>
Why do you write it two times?
In fact, in general, it is sufficient to call (the first sentence) by the method of outreach. I use two-table calls here as an example. The @import command is used to enter the style sheet. The "@import" command is not valid in Netscape version 4.0 browser. That is, when you want some effect to be hidden in Netscape 4.0 browsers, in more than 4.0 or other browsers, you can call the stylesheet using the "@import" command method.