CSS experience
I. CSS Management
I personally think it is important, and it seems that there are few such problems on the Internet.
If the CSS is well managed, it will save a lot of time and trouble to call and define CSS.
Below are some of my accumulated data
First, why external import or link CSS?
Because a webpage has many pages, a lot of CSS will be used (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 the same as the one to facilitate calling and management.
When I started to build a website, most of them had a plan in PS. At this time, we can preliminarily clarify the same part of CSS.
For example, the bottom text
Assume that three styles a, B, and c appear on the homepage.
The sub-page also displays
Define a on the homepage, and then define B, c in a. Then, only a appears in the CSS folder.
However, when the sub-page is imported to a, you can see a, B, and c, and then apply them one by one.
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.
Although numbers are used, in DW, they are 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.
3. About the Row Height
Generally, pixels and % are used to set
But it is best to set it with %,
This is because the pixel display in DW is somewhat different from that on the online page.
% Is set to be the same as that on the webpage.
Look at the figure.