Sin descripción

index02.html 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content="yes" name="apple-mobile-web-app-capable">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  7. <link rel="stylesheet" type="text/css" href="public.css"/>
  8. <title>红包雨</title>
  9. <style type="text/css">
  10. body{
  11. background:linear-gradient(90deg,#FF9000,#FF5000);
  12. height:6.5rem;
  13. }
  14. .body{
  15. width: 100%;
  16. height: 100%;
  17. background: url(img/bgImg.png) no-repeat;
  18. background-size: 100% 100%;
  19. text-align: center;
  20. overflow: hidden;
  21. display: flex;
  22. }
  23. .describe{
  24. width: 2.75rem;
  25. text-align: center;
  26. font-size: 0.16rem;
  27. line-height: 0.3rem;
  28. color: #535353;
  29. margin: auto;
  30. }
  31. .describe text{
  32. color: #FC3907;
  33. font-size: 0.2rem;
  34. padding: 0.05rem;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="body">
  40. <p class="describe">【最大红包雨】今晚<text>8点</text>准时抢!<br/>时间还没到哦(*^_^*)</p>
  41. </div>
  42. </body>
  43. </html>
  44. <script type="text/javascript">
  45. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  46. window.onresize = function(){
  47. document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
  48. }
  49. </script>