HTML common bug shorthand

     1. If the IE border is not visible, it must be noted that the height setting has been forgotten;

  2. There is a reason for the floating. If the parent layer is to be contained, it must be cleared immediately after the floating, and the container will naturally appear in it;

  3. The pixel text moves slowly Don't panic, the height setting will help you;

  4. Note that it is compatible with various browsers, and the default setting of row height may be a killer;

  5. You must keep in mind when clearing the floating independently, the row height is set to no, the height is set to zero, and the design effect is also browsed;

  6. Learn The layout requires ideas, the road follows the layout principle naturally and straight, easy to control html, the flow layout is less hack, the code is clean, the compatibility is good, and the friendly engine likes to welcome.

  7. All tags are sourced, but the default is different, span is Wuji, Wuji produces two instruments - inline and block level, img is special, but it also obeys the law, the others are just different transformations, a * sign is all returned to the original, The cascading style requires a lot of practice, and everything is regular.

  8. Be careful with the typesetting of image links. If the text links of image links are aligned, padding and vertical-align:middle should be set, although the difference is subtle.

  9. IE floating double distance, please use display: inline restraint.

  10. The list is formatted horizontally, the list code must be close to each other, and the gap must be remembered.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324651916&siteId=291194637