master
parent
044c830894
commit
f4d67b4fd3
|
|
@ -466,6 +466,17 @@
|
|||
background: #F2F2F2;
|
||||
}
|
||||
|
||||
/*中国天气样式*/
|
||||
.weather-ok{
|
||||
height: 49px;
|
||||
line-height: 49px;
|
||||
}
|
||||
.weather-ok .iframe-style{
|
||||
/*height: 415px;*/
|
||||
height: 375px;
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
||||
/*主体内容样式*/
|
||||
.okadmin .content-body {
|
||||
position: absolute;
|
||||
|
|
|
|||
22
index.html
22
index.html
|
|
@ -29,9 +29,10 @@
|
|||
</li>
|
||||
<li class="ok-nav-item ok-hide-md">
|
||||
<!-- 天气信息 -->
|
||||
<div class="weather">
|
||||
<div id="tp-weather-widget"></div>
|
||||
<div class="weather-ok">
|
||||
<iframe frameborder="0" scrolling="no" class="iframe-style" src="./weather.html" frameborder="0"></iframe>
|
||||
</div>
|
||||
<!--<div id="tp-weather-widget"></div>-->
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
|
@ -142,8 +143,15 @@
|
|||
<script src="lib/layui/layui.js"></script>
|
||||
<!--<script src="lib/nprogress/nprogress.js"></script>-->
|
||||
<script src="js/okadmin.js"></script>
|
||||
<!--天气预报插件-->
|
||||
<script type="text/javascript">
|
||||
|
||||
<!--中国天气预报插件-->
|
||||
<!-- ok-admin-weather -->
|
||||
<!--<script type="text/javascript">-->
|
||||
<!--WIDGET = {FID: 'acC5MsrKTi'}-->
|
||||
<!--</script>-->
|
||||
<!--<script type="text/javascript" src="https://apip.weatherdt.com/float/static/js/r.js?v=1111"></script>-->
|
||||
<!--知心天气预报插件-->
|
||||
<!--<script type="text/javascript">
|
||||
(function (T, h, i, n, k, P, a, g, e) {
|
||||
g = function () {
|
||||
P = h.createElement(i);
|
||||
|
|
@ -163,7 +171,7 @@
|
|||
} else {
|
||||
T.addEventListener("load", g, false)
|
||||
}
|
||||
}(window, document, "script", "tpwidget", "//widget.seniverse.com/widget/chameleon.js"))
|
||||
}(window, document, "script", "tpwidget", "//widget.seniverse.com/widget/chameleon.js"));
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
tpwidget("init", {
|
||||
|
|
@ -181,6 +189,8 @@
|
|||
"hash": "039da28f5581f4bcb5c799fb4cdfb673"
|
||||
});
|
||||
tpwidget("show");
|
||||
</script>
|
||||
</script>-->
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>中国天气</title>
|
||||
<style>
|
||||
#weather-float-he {
|
||||
position: fixed !important;
|
||||
z-index: 99999 !important;
|
||||
left: 0 !important;
|
||||
top: 0 !important;
|
||||
transform: scale(.9);
|
||||
}
|
||||
body,html{
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
height: max-content;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript">
|
||||
WIDGET = {FID: 'RgKVDBQZUQ'}
|
||||
</script>
|
||||
<script type="text/javascript" src="https://apip.weatherdt.com/float/static/js/r.js?v=1111"></script>
|
||||
</body>
|
||||
</html>
|
||||
<!-- ok-admin-weather -->
|
||||
Loading…
Reference in New Issue