You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.3 KiB

3 years ago
  1. /* 把我们所有标签的内外边距清零 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. /* em 和 i 斜体的文字不倾斜 */
  8. em,
  9. i {
  10. font-style: normal
  11. }
  12. /* 去掉li 的小圆点 */
  13. li {
  14. list-style: none
  15. }
  16. img {
  17. /* border 0 照顾低版本浏览器 如果 图片外面包含了链接会有边框的问题 */
  18. border: 0;
  19. /* 取消图片底侧有空白缝隙的问题 */
  20. vertical-align: middle
  21. }
  22. button {
  23. /* 当我们鼠标经过button 按钮的时候,鼠标变成小手 */
  24. cursor: pointer
  25. }
  26. a {
  27. color: #666;
  28. text-decoration: none
  29. }
  30. a:hover {
  31. color: #c81623
  32. }
  33. button,
  34. input {
  35. /* "\5B8B\4F53" 就是宋体的意思 这样浏览器兼容性比较好 */
  36. font-family: Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
  37. border: 0;
  38. outline: 0;
  39. }
  40. body {
  41. /* CSS3 抗锯齿形 让文字显示的更加清晰 */
  42. -webkit-font-smoothing: antialiased;
  43. background-color: #fff;
  44. font: 12px/1.5 Microsoft YaHei, Heiti SC, tahoma, arial, Hiragino Sans GB, "\5B8B\4F53", sans-serif;
  45. color: #666
  46. }
  47. .hide,
  48. .none {
  49. display: none
  50. }
  51. /* 清除浮动 */
  52. .clearfix:after {
  53. visibility: hidden;
  54. clear: both;
  55. display: block;
  56. content: ".";
  57. height: 0
  58. }
  59. .clearfix {
  60. *zoom: 1
  61. }