1_style.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. @charset "UTF-8";
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. }
  6. li {
  7. list-style: none;
  8. }
  9. body {
  10. font-size: 16px;
  11. }
  12. /*
  13. div 元素
  14. 多行注释 编译后 .css文件中会保留
  15. */
  16. /*!
  17. 强制显示 编译后 .min.css文件中 会保留
  18. */
  19. div {
  20. background: #000;
  21. color: #eee;
  22. width: 100px;
  23. }
  24. #list {
  25. width: 100px;
  26. height: 20px;
  27. }
  28. #list li {
  29. font-size: 12px;
  30. }
  31. #list li p {
  32. padding-top: 30px;
  33. padding-left: 10px;
  34. }
  35. #list-inner {
  36. color: #000;
  37. }
  38. .link {
  39. color: #000;
  40. }
  41. .link:hover {
  42. color: #eee;
  43. }
  44. .login-btn {
  45. width: 100px;
  46. height: 40px;
  47. line-height: 40px;
  48. text-align: center;
  49. border-radius: 5px;
  50. color: #eee;
  51. background: #000;
  52. }
  53. .submit-btn {
  54. width: 50px;
  55. height: 50px;
  56. line-height: 50px;
  57. text-align: center;
  58. border-radius: 5px;
  59. color: #eee;
  60. background: #000;
  61. }
  62. .del-btn {
  63. width: 20px;
  64. height: 20px;
  65. line-height: 20px;
  66. text-align: center;
  67. border-radius: 5px;
  68. color: #eee;
  69. background: #000;
  70. }
  71. .aa-btn {
  72. width: 300px;
  73. height: 20px;
  74. line-height: 20px;
  75. text-align: center;
  76. border-radius: 5px;
  77. color: #eee;
  78. background: #000;
  79. }
  80. .wrapper, .wrapper .inner, #main {
  81. width: 100px;
  82. height: 100px;
  83. font-size: 10px;
  84. }
  85. .wrapper .inner, #main .inner {
  86. padding: 20px;
  87. }
  88. #main {
  89. margin: 10px;
  90. }
  91. /*
  92. 绝对值: abs(-10px)
  93. 四舍五入:round(5.5)
  94. 向上取整:ceil(5.5)
  95. 向下取整:floor(5.5)
  96. 百分比:percentage(30px / 100px)
  97. 最小值: min(1,2,3)
  98. 最大值:max(1,2,3)
  99. */
  100. .content {
  101. width: 30%;
  102. }
  103. div {
  104. width: 60px;
  105. }
  106. p {
  107. border: 1px solid #000;
  108. background: yellow;
  109. }
  110. li {
  111. font-size: 12px;
  112. }
  113. .list-1 {
  114. width: 100px;
  115. }
  116. .list-2 {
  117. width: 200px;
  118. }
  119. .list-3 {
  120. width: 300px;
  121. }
  122. .none-1 {
  123. width: 50px;
  124. }
  125. .none-2 {
  126. width: 100px;
  127. }