Browse Source

南岸区公开信箱统计数据做移动端

hyx 2 years ago
parent
commit
aab80abafc

+ 5 - 0
nngkxxdp/src/main/resources/static/nngkxxdp/css/mobile_letterBox.css

@@ -6,6 +6,7 @@ body {
 .letterBoxAll {
     background-color: #EBF0F3;
     height: 100%;
+    overflow: auto;
 }
 
 .firstArea {
@@ -343,4 +344,8 @@ thead th {
 
 .layui-laypage span {
     font-size: 30px;
+}
+
+.layui-laypage span select {
+    font-size: 20px;
 }

+ 5 - 5
nngkxxdp/src/main/resources/static/nngkxxdp/mobile_index.html

@@ -92,7 +92,7 @@
                     <tbody id="detail_tbody">
                     </tbody>
                 </table>
-                <div id="detail_table_page" style="text-align: center;font-size:30px;margin-top: 10px;"></div>
+                <div id="detail_table_page" style="text-align: center;margin-top: 10px;"></div>
             </div>
         </div>
 
@@ -106,10 +106,10 @@
 <script type="text/javascript" src="js/mobile_letterBox.js" charset="utf-8"></script>
 <script>
     // PC端 移动端 跳转
-    // var is_mobi = navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
-    // if (!is_mobi) {
-    //     window.location.href="index.html"
-    // }
+    var is_mobi = navigator.userAgent.toLowerCase().match(/(ipod|iphone|android|coolpad|mmp|smartphone|midp|wap|xoom|symbian|j2me|blackberry|wince)/i) != null;
+    if (!is_mobi) {
+        window.location.href="index.html"
+    }
 </script>
 </body>
 </html>