1.CSS inheritance refers to the CSS style that we set the ancestor (parent) to, and the parent and child (subordinate) with this property.
Generally only text text some styles have inheritance characteristics, such as text size, text bold, text color, font and so on. Most other style attributes are not inherited
Common inherited CSS Properties: font, color;
2, a lot of HTML tags have their own default properties, which can sometimes bring us a lot of trouble and inconvenience, so a good front-end engineer, preferably in the beginning, the style of common tags under initialization.
Commonly used initialization method, can refer to: http://www.divcss5.com/template/m17.shtml
3, talking about CSS compatibility issues,
CSS compatibility includes the following points: CSS page layout dislocation, CSS Web pages in different browsers display text size, color inconsistency, CSS page blank, div+css in each browser display layout style is different
CSS compatibility issues occur because the CSS is not initialized, the charset encoding is incorrect, the label is not closed, the browser interprets the CSS property is different, the CSS fails, the DOCTYPE declaration
The solution: To prevent the occurrence of the cause, to avoid the possibility.
Front-end style practice out of the Truth series (ii)