main.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. body {
  2. background: #dddada;
  3. font-family: '微软雅黑';
  4. }
  5. .containers {
  6. width: 1080px;
  7. /* overflow: hidden; */
  8. min-height: 80vh;
  9. margin: 0 auto;
  10. }
  11. .con-title {
  12. width: 300px;
  13. margin: 0 auto;
  14. margin-top: 20px;
  15. display: inline-block;
  16. font-size: 20px;
  17. text-align: center;
  18. font-weight: bold;
  19. padding: 20px;
  20. }
  21. .con {
  22. padding-right: 20px !important;
  23. /* width: 100%; */
  24. height: auto;
  25. overflow: hidden;
  26. /* background: #f9fafc; */
  27. /* margin: 0 auto 0; */
  28. display: flex;
  29. flex-wrap: wrap;
  30. /* padding: 20px 2%; */
  31. justify-content: center;
  32. }
  33. .con li {
  34. text-align: center;
  35. width: 30%;
  36. display: inline-block;
  37. margin: 25px 10px;
  38. }
  39. .case {
  40. padding: 10px;
  41. background: url('../img/divBac.png');
  42. background-size: 100% 100%;
  43. /* border-radius: 10px; */
  44. box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  45. transition: all 0.3s;
  46. }
  47. .case:hover {
  48. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.6);
  49. transform: translateY(-15px);
  50. }
  51. .case .card-img {
  52. width: 100%;
  53. height: 180px;
  54. background-repeat: no-repeat;
  55. background-size: cover;
  56. background-position: top center;
  57. }
  58. .con li p {
  59. color: #fff;
  60. margin-top: 10px;
  61. font-size: 16px;
  62. font-weight: 100;
  63. }
  64. .link-a {
  65. width: 100%;
  66. height: 100%;
  67. display: inline-block;
  68. }
  69. #introductionWrap{
  70. position: absolute;
  71. z-index: 1;
  72. display: flex;
  73. flex-direction: column;
  74. right: 20px;
  75. text-align: right;
  76. top: 20px;
  77. font-size: 18px;
  78. color: #ffffff;
  79. font-weight: 100;
  80. line-height: 30px;
  81. letter-spacing: 2px;
  82. }
  83. #companyText{
  84. position: absolute;
  85. z-index: 1;
  86. font-size: 16px;
  87. color:rgb(153, 153, 153);
  88. font-weight: 100;
  89. left: 50%;
  90. transform: translateX(-50%);
  91. bottom: 20px;
  92. letter-spacing: 1px;
  93. text-shadow:rgb(51, 51, 51) 0px 1px 1px;
  94. }
  95. @media screen and (max-width: 600px) {
  96. .containers {
  97. width: 100%;
  98. }
  99. .con {
  100. padding: 0;
  101. }
  102. .case .card-img {
  103. background-size: auto 100%;
  104. height: 90px;
  105. }
  106. .con li {
  107. width: 44%;
  108. }
  109. #introductionWrap{
  110. position: absolute;
  111. z-index: 1;
  112. display: flex;
  113. flex-direction: column;
  114. right: 10px;
  115. text-align: right;
  116. top: 16px;
  117. font-size: 16px;
  118. color: #ffffff;
  119. font-weight: 100;
  120. line-height: 28px;
  121. letter-spacing: 1px;
  122. }
  123. /* .con li p {
  124. font-size: 16px;
  125. } */
  126. }
  127. @media screen and (max-width: 350px) {
  128. .con li {
  129. margin: 20px auto;
  130. }
  131. }
  132. .hide{
  133. display: none;
  134. }
  135. #companyText{
  136. position: absolute;
  137. z-index: 1;
  138. font-size: 16px;
  139. font-weight: 100;
  140. left: 50%;
  141. transform: translateX(-50%);
  142. bottom: 20px;
  143. letter-spacing: 1px;
  144. }
  145. @media screen and (max-width: 320px) {
  146. .con li {
  147. width: 43%;
  148. }
  149. .con li p {
  150. font-size: 14px;
  151. font-weight: 100;
  152. }
  153. }