记录分享自己经常使用的初始化样式解决方案:

  1. @charset "utf-8";
  2. / 重置样式 /
  3. html,body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,p,a,form,input,img,testarea{
  4.     margin:0;padding: 0;
  5. }
  6. body{
  7.     font-size:16px;
  8.  }
  9. *{box-sizing: border-box}
  10. ul, ol {
  11.     list-style:none;
  12. }
  13. a{
  14.     text-decoration: none;
  15.     display: block;
  16.     color:inherit;
  17. }
  18. a:hover{
  19.     color: #575757
  20. }
  21. h1,h2,h3,h4,h5,h6{
  22.     width: 100%;font-weight: normal;
  23. }
  24. / 清除ie图片边框 /
  25. img{
  26.     border: none;
  27. }

github: https://github.com/hlbj105/reset.css