CSS there are bugs, but how can we remember these bugs, so that in the future to write CSS code can be a good response, this is not, the conscientious to write such a CSS bug jingle, or very good:
One, ie border if no, should pay attention to, must be the height set has been forgotten;
Two, the float has the reason, wants the parent layer to contain, follows floats to be clear, the container naturally to be obvious therein;
Three or three pixel text slow move don't panic, height settings help you busy;
Four, compatible with each browsing should note that the default set row height may be the killer;
Five, independent clearance float to bear in mind, row height set no, high set 0, design effect and browsing;
Six, the study layout must train of thought, the road along with the layout principle natural straight, easy to control the HTML, the water flow layout less hack, the code is refreshing, is compatible, the friendly engine likes welcoming.
Seven, all tags have the source, but the default is different, span is the infinite, the two instrument----inline and block-level, IMG more special, but also in compliance with the law, the other just to change the different, a * number all to the original, cascading style to practice more, all things are law.
Eight, the picture link typesetting must be careful, picture link text link if alignment, padding and vertical-align:middle to set, although the difference is fine.
Nine, ie floating bilateral distance, please use display:inline detention.
Ten, the list of horizontal layout, list code must be close to, the gap from the elimination of the need to remember.
How, is not in the mind clear some, at least for later on the preparation of CSS helpful.