A little bit about CSS

Source: Internet
Author: User
Not so many, but I think it is very useful. I wrote it before, but I don't know how to use CSS when I saw my netizens do my website. Style sheets are basic stuff, if you don't want others to think of you as a small dish, use a style sheet.
I. CSS management
I personally think it is important, and it seems that I rarely talk about this on the internet. If I manage it well, it will save a lot of time and trouble to call and define CSS, the following are some of my accumulation ...............
The first is why external imports or links to CSS. Because a webpage has many pages, a lot of CSS is required (and some of them are repeated ), if each page is defined separately ..............
The following is a management method. In the images folder under the index, the CSS folder is at the same level to facilitate the call and management. When we started to create a website, most of them obtained a plan in PS, at this time, we can preliminarily clarify the same part of CSS, such as the bottom, body ...............
Suppose there are three styles a, B, and c that appear on the home page, and the sub-pages also appear on the home page, define a on the home page, and then define B, c in, in the CSS folder, only a Appears. When the sub-page is imported to a, you can see a, B, and c and then apply them in sequence.
Then, a page is defined with multiple hyperlink styles.
A: link
A: visited
A: hover
B: link
B: visited
B: hover
Replace the previous one.
However, do not use CSS or numbers, such as 123 or ss12, because although numbers are used, in DW, it is displayed by default. Although the effect on the last page is the same, it looks messy in DW, so ......... it is better to name it with pure letters.
2. About the row height
Generally, pixels and % are usually used for setting, but it is best to use % for setting, because the pixels displayed on the DW are somewhat different from those on the online page, the % setting is the same as that on the webpage. You can see the figure.

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.