index.css 766 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. @charset "UTF-8";
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. list-style: none;
  6. text-decoration: none;
  7. box-sizing: border-box;
  8. }
  9. body, html {
  10. font-size: 30px;
  11. }
  12. /* 你好 */
  13. h1 {
  14. font-size: 50px;
  15. color: plum;
  16. width: 200px;
  17. height: 300px;
  18. margin: 10px;
  19. border: 3px solid #00f;
  20. border-radius: 30px;
  21. background: #f00;
  22. box-shadow: 30px 20px 4px plum;
  23. }
  24. ul {
  25. width: 400px;
  26. height: 400px;
  27. background: #ff0;
  28. list-style: none;
  29. }
  30. ul li {
  31. padding: 10px;
  32. }
  33. ul li a {
  34. text-decoration: none;
  35. color: #00f;
  36. font-size: 40px;
  37. font-weight: bold;
  38. }
  39. ul li a:hover {
  40. color: #f00;
  41. }
  42. /*
  43. 混合宏
  44. @mixin 允许定义一个可以再整个样式表复制的样式
  45. @include 可以将mixin混入到整个样式表中
  46. */
  47. p {
  48. color: #00f;
  49. }