Things to keep in mind when using CSS
I have summarized these points so far. If there are any new ones, I will add them (:
1. The issue of cross-browser access (personally think this is the most important issue). There is a book "Website Refactoring" that you can read.
2. When used in different locations, different css files should be selected to present different effects. Media: screen, printer other. Because the display and location are different, the required css files may be very different, otherwise the effect will be affected.
3. The user's browser background does not necessarily have to be set to white. Many people may overlook this detail. When defining the body first, they do not consider the background color.
It is taken for granted that the background of the client's browser must be white.
4. Do not use (background) pictures to display important information, because under some network conditions, the picture may not be displayed, or the user has set the picture not to be displayed on the client, which will affect the effect of the website. (The background image is a decoration and cannot be used as "content").
5. The access convenience of different visitors needs to be taken into consideration. For example: the user may be color blind, deaf-mute, etc. In this way, certain colors or sounds cannot be used as a carrier to reflect the content of the website or for other purposes. (Text is king, ContentsKing, so the website should be mainly reflected in text)