Do you know where the first reset.css in the world is?
* {margin:0; padding:0}
A bad character?
Eric Meyer and Yui are lovers?
Does Google use Reset.css?
No CSS Reset the slogan is who first proposed?
Similar problems or confusion can be enumerated, reset.css extremely simple and extremely not simple. Before continuing to dig up gossip, please turn off your reverie, or go to the toilet to get some air, and then read the following.
Not history.
2004, remote and as close as yesterday, Tantek by different browsers under the default style of the difference to get annoyed, so pondering wrote a undohtml.css, this is the first gossip question answer.
For browsers such as Firefox based on the Gecko engine, enter RESOURCE://GRE/RES/HTML.CSS in the Address bar, and the default style is presented in front of the nude. The CSS Guru-level character Eric Meyer immediately sniffed at Html.css's interesting nature: really undoing html.css. Know CSS fun, really did not expect CSS so fun. Like what
Style, script {Display:block}
You can display CSS and JS source code, in the Demo demo page, do not have to work hard with the pre or textarea (although because IE does not support the cause of not practical, but this is really a thought).
Continue gossip: CSS negotiation and a sanity saving shortcut.
* {margin:0; padding:0}
The scientific name is global white space Reset. It can be seen from the original that this method was very hot when it came out, and the author suggested that we must first break the post, to clean the difference and reset the default style, this is the correct approach.
Why the global white space reset the original scenery, but now sadly?
* {margin:0; padding:0}
The success lies in, tube you 3,728, all wipe flat, human life and equality! However, its failure is also because of its power is too large, although the pound to get honey, but to provoke the swarm of bees rear-ended, trouble infinite (because the style of being flattened, you have to reset back, such as input padding, etc.). This is like Han Dynasty, a generation of Han Xin, is Chengye, Shenya!
There is also a legend that the asterisk * selector can also cause performance problems. Since I haven't found reliable information, I don't know how to test the rendering performance of CSS selectors (please tell me if you know), the legendary performance problem can only be when it is legendary.
In the blink of an eye, three years have passed. In 2007, an article by Eric Meyer, Reset Styles, revived a reset boom. This article has the answer to the 3rd gossip question: Eric's reset.css is from Yui, may be mother-child relationship, but in short is not a couple relationship.
Soon, Eric released a second edition: reworked Reset. The following explanations are extremely valuable, and many of the property values are set out here in detail.
The hot reply gave Eric a steady stream of power: Reset Reloaded. After reading this article, there is a feeling of dust settling.
But the above article is not the final version, in February 2008, Eric Meyer also updated: CSS Tools:reset CSS
Finish Eric Meyer's mind course, have to mention Yui Reset CSS. The founder was Nate Kokechley. Last year, Beijing D2 Forum also saw a side, not long ago has left Yahoo, let my intuition to Yui are a little worried up, alas.
Above is the two most famous CSS reset scheme. But the world is always diverse, such as less is more–my choice of Reset CSS. This is in line with Eric Meyer's expectations: in a different application environment, you should choose your own reset scheme instead of simply copy the past. For example, Google homepage, in this particular page, do not need to be one of the best use.
More dazzling reset scheme see: A killer Collection of Global CSS reset Styles. Very title party, the content is a mixed bag.
Finally, a grand announcement of the last gossip question answer: No CSS Reset. The core idea advocated is also less is more. The reason is simple,
* {margin:0; padding:0}
The lethality is too great, and in some cases Eric Meyer's program is still too lethal. It's always good to have ideas and say them.
There are objections there will be support: Why I like (with use) Reset CSS. The public said the right, the woman said that the woman is reasonable, not all questions need an exact answer, sometimes the process itself, is the pursuit of the results.
Eric Meyer's reply to no CSS reset: crafting ourselves. Read this article, the bright Moonlight, clear spring stone high. The following extracts two paragraphs, do this gossip leisure text end:
Because this isn ' t a field of straightforward answers and universal solutions. We are often faced with problems that have multiple, none of solutions them. To understand what makes all solution imperfect and to know which of them's the best choice in the Situation-that ' s know ing your craft. That ' s being a craftsman/craftswoman. It's a never-ending process that's all of the critical precisely because it is never-ending.
... It's evidence that we continue to challenge ourselves and all other to advance our skills,