CSS application tips 14 cases

xiaoxiao2021-03-06  68

CSS is the abbreviation of Cascading Style Sheets, Chinese translated "laminated style form", I am called "laminated style sheet", I feel like this, there is nothing else. In fact it is a set of styles. You may be more unfamiliar with CSS, in fact, whether you use Internet Explorer or Netscape Navigator to surf online, almost always deal with CSS, online without using CSS, may not be easy to find. No matter what tool software you use, there is a CSS that is interested in unintentionally. With good CSS, you can make your web page more simple, why do you have a few people dozens of KB, and the master is made only more than a dozen KB, and the role of CSS is self-evident. I put it out of some of my little experience in using CSS and some netizens to write questions, for reference. 1. CSS generally has three ways of use in web page production, then which usage should be used in use? When there are multiple web pages to use CSS, use the way to connect CSS files, this page of the page is greatly reduced, and it is very convenient to modify; only the CSS used in a single web page, using the document header; only in a web page First, the CSS used in two places, uses the insertion method. 2, do the three uses of CSS be mixed in a web page? Three usage can be mixed and will not cause confusion. That's why it is called "laminated style sheet", the browser is handled in the display page: Check if there is any in-line plug-in CSS, there is an execution, other CSSs for this sentence will not take It; after checking the CSS of the head mode, it will be performed; the CSS of the outer file mode is checked in the case of the first two. It can therefore be seen that the execution priority of the three CSSs is: in-line plug-in, heading, and external files. 3. How to make external file CSS in Dreamweaver3? Using an external file CSS in Dreamweaver3 does not have special requirements, the same is to create a * .css file with Notepad, plus a sentence between and : and The paragraph of the defined CSS is copied to the CSS file, and it is very good.

The whole process is to point my mouse, convenient? 5. Is it possible to write code in Dreamweaver3? No need to! First, use the CSS panel to define the CSS you want to use, then inserted into the CSS insertion: Style = "", then drag the CSS you just defined from to this double quotation, put the curly brackets The part is deleted. 6. There is "" in the CSS of the generic head mode and the external file mode, it seems that there is nothing, don't you? This pair's role is to do not cause errors in a low version of the browser. If a browser that does not support this page does not support CSS, it will ignore the contents. Although people who do not support CSS browser now have little, because almost what may happen on the Internet, it is still a wonderful. 7, how to add a background color to a part? Plus the text plus different colors, as long as the color of the text is selected on the property panel, it is very convenient, but to give some text plus different background colors without the corresponding function, we can do a defined background color CSS (such as: bgstyle), completed a few mice in DW3. Such as a definition pale yellow background is like this: