Ver Fonte

嵌入头部和底部

sunjuan há 2 anos atrás
pai
commit
0c43804aa4

+ 2 - 14
nngkxxdp/src/main/resources/static/natj/progress/index.html

@@ -9,21 +9,9 @@
 </head>
 
 <body>
-    <div style="width:100%;height:280px" id="header"></div>
+    <iframe style="width:100%;height:280px" src="https://www.cqna.gov.cn/ggbf_search/ggyr/2022top/head.html" frameborder="0" scrolling="no"></iframe>
     <iframe src="dataDetail.html" frameborder="0" style="width: 100%;height: 2820px;" scrolling="no"></iframe>
-    <div style="width:100%;" id="footer"></div>
+    <iframe style="width:100%;" src="https://www.cqna.gov.cn/ggbf_search/ggyr/2022foot/foot.html" frameborder="0" scrolling="no"></iframe>
 </body>
 
-<script>
-    setHeader()
-    setFooter()
-    function setHeader() {
-        $("#header").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022top/head.html")
-    }
-
-    function setFooter() {
-        $("#footer").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022foot/foot.html")
-    }
-</script>
-
 </html>