404.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. /*
  2. * 作者: QYZQ
  3. * 时间:2018.2.4
  4. * 备注:404页面设计灵感源于FreePik网站图片(https://www.freepik.com/free-vector/funny-error-404-background-design_1161579.htm#term=404&page=1&position=2),
  5. * FreePik网站提供免费下载渠道,网站也有提示侵权的通知,如有侵权请联系(Email: greatyuzequn@outlook.com),QYZQ将及时处理.
  6. */
  7. body, div, p, a{
  8. margin: 0px;
  9. padding: 0px;
  10. }
  11. p{
  12. text-decoration: none;
  13. user-select: none;
  14. }
  15. html, body{
  16. width: 100%;
  17. height: 100%;
  18. }
  19. body{
  20. background: linear-gradient(#c7c8cf,#e8e8e9,#c7c8cf);
  21. overflow: hidden;
  22. }
  23. .code{
  24. display: block;
  25. width: 100%;
  26. height: 120px;
  27. line-height: 120px;
  28. }
  29. .code p{
  30. height: inherit;
  31. line-height: inherit;
  32. text-align: center;
  33. font-family: BalboaWide Bold;
  34. font-size: 50px;
  35. color: #697a8a;
  36. opacity: 1;
  37. }
  38. .road{
  39. width: 100%;
  40. height: 600px;
  41. }
  42. .road .shadow{
  43. position: relative;
  44. margin: auto;
  45. margin-top: 280px;
  46. width: 330px;
  47. height: 70px;
  48. border:0px;
  49. background: linear-gradient(#777373,#3c3c3c);
  50. box-shadow: 0px 3px 10px 2px #464646, 0px -3px 10px 2px #3a3939 inset;
  51. border-radius: 100%;
  52. }
  53. .road p{
  54. display: block;
  55. margin-top: 50px;
  56. height: inherit;
  57. line-height: inherit;
  58. text-align: center;
  59. font-family: BalboaWide Bold;
  60. font-size: 30px;
  61. color: #697a8a;
  62. opacity: 1;
  63. }
  64. .road .shadow .bubble{
  65. display: block;
  66. position: absolute;
  67. top: -180px;
  68. left: 300px;
  69. width: 246px;
  70. height: 179px;
  71. background-image: url(../img/bubble.png);
  72. background-repeat: no-repeat;
  73. text-align: center;
  74. }
  75. .road .shadow .bubble a{
  76. line-height: 140px;
  77. font-family: "microsoft yahei";
  78. font-size: 1.5em;
  79. color: #F8F8F5;
  80. letter-spacing: 1px;
  81. text-decoration: none;
  82. transition: 1s;
  83. user-select:none;
  84. }
  85. .road .shadow .bubble a:hover{
  86. color: #FF8C00;
  87. }
  88. .road .shadow .shelt{
  89. position: absolute;
  90. margin: auto;
  91. margin-top: -80px;
  92. width: 330px;
  93. height: 150px;
  94. border:0px;
  95. border-radius: 100%;
  96. overflow: hidden;
  97. background: transparent;
  98. }
  99. .road .shadow .head{
  100. position: absolute;
  101. left: 50%;
  102. margin-left: -60px;
  103. top: 150px;
  104. width: 120px;
  105. height: 300px;
  106. border: 0px;
  107. border-radius: 100% 100% 0 0;
  108. background-color: #292d38;
  109. }
  110. .road .shadow .head .eyes{
  111. width: 100%;
  112. height: 50px;
  113. margin-top: 70px;
  114. display: flex;
  115. flex-direction: row;
  116. flex-wrap: nowrap;
  117. justify-content: space-around;
  118. }
  119. .road .shadow .head .eyes .lefteye,.road .shadow .head .eyes .righteye{
  120. position: relative;
  121. width: 38px;
  122. height: 38px;
  123. border-radius: 100%;
  124. background-color: #f1f2f4;
  125. }
  126. .road .shadow .head .eyes .lefteye .eyebrow{
  127. position: absolute;
  128. width: 38px;
  129. left: 0px;
  130. top: 0px;
  131. height: 19px;
  132. border-radius: 19px 19px 0 0;
  133. background-color:#4c5465;
  134. clip: rect(0px 38px 0px 0px);
  135. }
  136. .road .shadow .head .eyes .righteye .eyebrow{
  137. position: absolute;
  138. width: 38px;
  139. left: 0px;
  140. top: 0px;
  141. height: 19px;
  142. border-radius: 19px 19px 0 0;
  143. background-color:#4c5465;
  144. clip: rect(0px 38px 0px 0px);
  145. }
  146. .road .shadow .head .eyes .lefteye .eyeball{
  147. position: absolute;
  148. width: 10px;
  149. left: 50%;
  150. top: 50%;
  151. margin-top: -5px;
  152. margin-left: -5px;
  153. height: 10px;
  154. border-radius: 100%;
  155. background-color:#292d38 ;
  156. }
  157. .road .shadow .head .eyes .righteye .eyeball{
  158. position: absolute;
  159. width: 10px;
  160. left: 50%;
  161. top: 50%;
  162. margin-top: -5px;
  163. margin-left: -5px;
  164. height: 10px;
  165. border-radius: 100%;
  166. background-color:#292d38 ;
  167. }
  168. .road .shadow .hat{
  169. position: absolute;
  170. top: -297px;
  171. left: -8px;
  172. width: 330px;
  173. height: 330px;
  174. background: url(../img/sign.png) no-repeat;
  175. transform-origin: left bottom;
  176. transform: rotate(17deg);
  177. }