<?php
/**
*Template Name: 原神大地图
*
*
*/
get_header();
?>
<iframe id="bi_iframe" src="//webstatic.mihoyo.com/ys/app/interactive-map/index.html?bbs_presentation_style=no_header&lang=zh-cn&_markerFps=24#/map/2?shown_types=&center=2008.50,-1084.00&zoom=-3.00" onload="adjustIframe();"
frameborder="0" scrolling="auto" style="position: absolute;top: 65px;bottom: 60px;">
</iframe>
<script>
function adjustIframe(){
var ifm= document.getElementById("bi_iframe");
ifm.height=document.documentElement.clientHeight - 125;
ifm.width=document.documentElement.clientWidth;
}
</script>
<?php
get_footer();
?>
js那段是为了自适应屏幕宽度和高度,如果你的页面不是全屏页面就不要高度那一栏
这只是个模板,其他页面请自行探索!
文件应该是放在/b2/pageTemplates目录里面
大赞