CSS Use Experience _css/html

Source: Internet
Author: User
One, the management of CSS

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

If you manage it, 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 method of management, in the Images folder under Index, CSS folder with its peers, convenient to call and manage

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

such as the bottom, the body

Suppose there are now a, B, and C three styles appearing on the first page

And also appear in the sub-page

In the first page, define a, and then b,c, also defined in a, the CSS folder, will only appear a

But when you import a child page, you can see the a,b,c and then apply it in turn.

Then there is a page that defines styles with multiple hyperlinks

A:link

a:visited

A:hover

B:link

b:visited

B:hover

Just replace the front with OK.

But be careful not to use the CSS do not use numbers named, such as 123, and do not use the combination of numbers and letters such as SS12

Because although the number is OK, but in the DW, he is shown in the default way, although the last page of the effect is the same, but in the DW look very messy, so ... It's best to use pure letters to name them.

three, about row height

Generally used in pixels and% to set

But it's better to use% to set it,

Because the pixels in the DW are showing a bit of a discrepancy with the Web page.

And the% setting is the same as on the Web page

Look at the picture, you know.

  • 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.