Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

124 linhas
3.2 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport"
  6. content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
  7. <title>导航</title>
  8. <style>
  9. *{
  10. margin: 0;
  11. padding: 0;
  12. }
  13. .bg{
  14. position: fixed;
  15. width: 100%;
  16. height: 100%;
  17. left: 0;
  18. top: 0;
  19. z-index: -1;
  20. }
  21. .bg img{
  22. width: 100%;
  23. height: 100%;
  24. }
  25. .title{
  26. width: 70%;
  27. margin: 0 auto;
  28. /* margin-top: 8%; */
  29. }
  30. .list{
  31. padding: 0 2.6%;
  32. display: flex;
  33. flex-wrap: wrap;
  34. justify-content: space-between;
  35. }
  36. .list>a{
  37. width: 48.5%;
  38. /* float: left; */
  39. position: relative;
  40. display: block;
  41. }
  42. .list>a>img{
  43. height: 100%;
  44. }
  45. .list_main{
  46. position: absolute;
  47. font-weight: 400;
  48. color: #FFFFFF;
  49. left: 24px; top: 21.59px; font-size: 16.8px;
  50. }
  51. .list_main span{
  52. opacity: .6;
  53. }
  54. .list_main p {
  55. opacity: .9;
  56. }
  57. </style>
  58. </head>
  59. <body>
  60. <div class="bg">
  61. <img src="../Content/phone/imgs/bg.png" alt="">
  62. </div>
  63. <div class="title">
  64. <img src="../Content/phone/imgs/title.png" alt="" width="100%">
  65. </div>
  66. <div class="list">
  67. <a style="margin-right: 3%;" class="list_child" href="/PhonePage/survey.html">
  68. <img src="../Content/phone/imgs/list_1.png" alt="" width="100%">
  69. <div class="list_main">
  70. <p>学校概况</p>
  71. <span>Go</span>
  72. </div>
  73. </a>
  74. <a class="list_child" href="/PhonePage/proDsc.html">
  75. <img src="../Content/phone/imgs/list_2.png" alt="" width="100%">
  76. <div class="list_main">
  77. <p>专业介绍</p>
  78. <span>Go</span>
  79. </div>
  80. </a>
  81. <a style="margin-right: 3%;" class="list_child" href="/PhonePage/schoolNewsList.html">
  82. <img src="../Content/phone/imgs/list_3.png" alt="" width="100%">
  83. <div class="list_main" style="color: #313131;">
  84. <p >学校新闻</p>
  85. <span>Go</span>
  86. </div>
  87. </a>
  88. <a class="list_child" href="/PhonePage/schoolSceneryList.html">
  89. <img src="../Content/phone/imgs/list_4.png" alt="" width="100%">
  90. <div class="list_main">
  91. <p>校园风光</p>
  92. <span>Go</span>
  93. </div>
  94. </a>
  95. <a class="list_child" style="width: 100%;" href="/PhonePage/newStudentGui.html">
  96. <img src="../Content/phone/imgs/list_botom.png" alt="" width="100%">
  97. <div class="list_main">
  98. <p>新生指引</p>
  99. <span>Go</span>
  100. </div>
  101. </a>
  102. </div>
  103. <script type="text/javascript">
  104. var pageHeight = window.screen.height
  105. var pageWidth = window.screen.width
  106. var title = document.getElementsByClassName('title')[0]
  107. var lists = document.getElementsByClassName('list_child')
  108. var list_main = document.getElementsByClassName('list_main')
  109. for(var i=0;i<lists.length;i++){
  110. lists[i].style.marginBottom = (pageHeight*0.02)+'px';
  111. }
  112. for(var i=0;i<list_main.length;i++){
  113. list_main[i].style.left = (pageWidth*0.06)+'px';
  114. list_main[i].style.top = (pageHeight*0.034)+'px';
  115. list_main[i].style.fontSize = (pageWidth*0.042)+'px';
  116. }
  117. title.style.marginTop=(pageHeight*0.059)+'px';
  118. title.style.marginBottom=(pageHeight*0.05)+'px';
  119. </script>
  120. </body>
  121. </html>