{"action":"opened","issue":{"url":"https://api.github.com/repos/24wangchen/study/issues/22","labels_url":"https://api.github.com/repos/24wangchen/study/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/24wangchen/study/issues/22/comments","events_url":"https://api.github.com/repos/24wangchen/study/issues/22/events","html_url":"https://github.com/24wangchen/study/issues/22","id":81806828,"number":22,"title":"reset css","user":{"login":"24wangchen","id":4346019,"avatar_url":"https://avatars.githubusercontent.com/u/4346019?v=3","gravatar_id":"","url":"https://api.github.com/users/24wangchen","html_url":"https://github.com/24wangchen","followers_url":"https://api.github.com/users/24wangchen/followers","following_url":"https://api.github.com/users/24wangchen/following{/other_user}","gists_url":"https://api.github.com/users/24wangchen/gists{/gist_id}","starred_url":"https://api.github.com/users/24wangchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/24wangchen/subscriptions","organizations_url":"https://api.github.com/users/24wangchen/orgs","repos_url":"https://api.github.com/users/24wangchen/repos","events_url":"https://api.github.com/users/24wangchen/events{/privacy}","received_events_url":"https://api.github.com/users/24wangchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-28T07:37:14Z","updated_at":"2015-05-28T07:37:14Z","closed_at":null,"body":"由于各家浏览器有各自的默认样式，所以实际项目中需要一个reset.css文件来重置默认属性，以下列出主流浏览器默认样式\r\n* [Internet Explorer (Trident)](http://www.iecss.com/)\r\n* [Chrome/Safari (WebKit)](http://trac.webkit.org/browser/trunk/Source/WebCore/css/html.css)\r\n* [Firefox (Gecko)](http://mxr.mozilla.org/mozilla-central/source/layout/style/html.css)\r\n\r\n目前比较流行的有YUI的[reset.css](http://yui.yahooapis.com/3.18.1/build/cssreset/cssreset.css)，正所谓学知识不能“知其然而不知其所以然”，所以我们要充分了解各浏览器的默认样式，才能写出适合自己项目的reset.css，下面重置代码是大忌，会导致很多问题\r\n```\r\n* {\r\n    margin: 0;\r\n    padding: 0;\r\n}\r\n```\r\n"}}