CSS FAQ Summary

Source: Internet
Author: User

CSS is the abbreviation of cascading style sheets, Chinese translation "Cascading style form", I call it "cascading style sheet", I feel this kind of casually, no other meaning. It's actually a set of styles. You may be unfamiliar with the term CSS, in fact, whether you use Internet Explorer or Netscape Navigator surf the web, almost always with CSS, the Web page without the use of CSS may not be easy to find. No matter what tool you use to make Web pages, there is an unintentional use of CSS. With good CSS can make your page more conciseness, why the same content of the page, some people do out there are dozens of KB, and the master made only more than 10 kb,css in which the role is self-evident. Here are some common questions in using CSS for your reference.

1, CSS in the Web page is generally used in the production of three ways, then specific in the use of what kind of usage?

When there are multiple pages to use the CSS, the use of the external CSS file, so that the code of the Web page is greatly reduced, modified very conveniently; CSS used only in a single Web page, using the document head method; only CSS used in one or two places in a Web page is used in inline inserts.

2, the three kinds of usage of CSS in a Web page to mix it?

Three uses can be mixed without causing confusion. That's why it's called "Cascading style sheets," browser in the display of the Web page is handled like this: first check that there is no inline CSS, there is the implementation of the other CSS for this sentence does not take care of it; second, check the head way of the CSS, there is , and then check the CSS for the external file way without the first two. Therefore, it can be seen that three kinds of CSS implementation priority is: inline insertion, head mode, external file mode.

3. How to make the external file CSS in the Web page?

The use of foreign-file CSS in the Web page does not have special requirements, but also with Notepad to create a *.css file, the page

<link rel= "stylesheet" href= "Here's your CSS file address (relative path + filename)" type= "Text/css" >

4. How to use Dreamweaver3 to quickly create CSS external linked files?

For a web designer who first touches CSS, it's difficult to create a CSS file with an editor like Notepad. Because Dreamweaver3 is good for CSS support, it is much easier to use it to help. This can be done:

1 First write on the paper on the Web page in the website may be used in the name of the lattice, then in the Dreamweaver3 edit window to pull out the CSS panel, one by one to define, and on a blank page appropriately write a little relevant content, edge definition side trial, the effect is not satisfied, immediately modify;

2 after all defined, and then use Notepad to create an empty CSS external link file, the

5, in the Dreamweaver3 to use inline insert CSS to manually write code?

No! First, use the CSS panel to define the CSS you want to use, and then insert the markup you want to insert into the CSS: style= "", then drag the CSS you just defined from behind the

6, in the side of the head and outside the file mode of the CSS has "<!--" and "-->", as if there is no use, do not you?

This pair of Dongdong's function is to not cause the low version browser error. If a browser that executes this page does not support CSS, it ignores the contents. Although there are few people who don't support CSS browsers now, it's good to keep it because almost anything on the internet can happen.

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.