Experience in using CSS _css/html

Source: Internet
Author: User

One, the management of CSS

I personally feel more important, and the Internet seems to be relatively few say this

If you manage well, you'll save a lot of time and trouble when you call and define CSS

Here are some of my accumulated

The first is why you want to import or link CSS externally

Because a page has a lot of pages, which will use a lot of CSS (and some of them are duplicated), if each page is defined separately, the following is the management method, in the Images folder under Index, CSS folder with the same sibling, easy to invoke and manage

Start to do the site, because we mostly in PS have got the floor plan, at this time can initially clear the same part of the CSS

Like the bottom, the body.

Suppose there are now a, B, c three styles appearing on the home page

Also appears in the child page

Then you define a in the first page, and then you will b,c, also defined in a, in the CSS folder, there will only be a

But when the child page imports A, you can see A,B,C and then apply it in turn.

And then a style defined in a page that uses a variety of hyperlinks

A:link

a:visited

A:hover

B:link

b:visited

B:hover

Just change the front, OK?

But do not use CSS do not use the number of names, such as 123 or the like, do not use SS12 and other numbers and letters of the combination

Because although the number is OK, but in the DW, he is displayed in the default way, although on the last page of the effect is the same, but in the DW looks very messy, so ... It's best to name it in plain letters.

three, about row height

Generally used in pixels and% to set

But it's best to use% to set the

Because the pixels displayed in the DW are somewhat out of line with the Web page.

and% set is the same as on the page

Just look at the picture.

Related Article

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.