Reset CSS as a rookie I first found that the browser will default to the elements such as p to set the margin feel the mood just want to discover the new world I understand the need for the following code
*{ margin:0; padding:0; }
In fact, this is not a good way to set up, of course you've seen such settings
h1,h2,h3,p,div { margin:0; padding:0; }
You review elements in the browser find div default margin padding is 0 such settings are not reasonable
Besides, you've got the problem of re-rendering when you add a style to the H1 in the above settings. So you might as well use your settings to reduce rendering when you're using it.
For example, you want to use a div under the P
Div p { margin:0; padding:0;
font-size:14px; }
This reduces rendering while also reducing the size of the CSS
In the process of learning this problem, I still refer to a Daniel's blog http://www.zhangxinxu.com/wordpress/?p=758 His other articles write CSS is emotional, It's going to add your personal feelings to the way you write. I suddenly feel that the world of CSS is really wonderful and novel.
CSS Reset Small Note