打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

赞助会员:修订间差异

来自方块乐事
无编辑摘要
无编辑摘要
第1行: 第1行:
== 赞助列表<html>
== 赞助列表 ==
   <iframe src="https://fkls.cc/donorslist/" width="100%" height="800" allowfullscreen></iframe>
 
<html>
   <iframe id="myIframe" src="https://fkls.cc/donorslist/" width="100%" frameborder="0" scrolling="no allowfullscreen></iframe>
<script>
function resizeIframe() {
  const iframe = document.getElementById('myIframe');
  // 关键:获取子页面 body 实际高度(兼容不同浏览器)
  const contentHeight = iframe.contentWindow.document.body.scrollHeight ||
                        iframe.contentWindow.document.documentElement.scrollHeight;
  iframe.height = contentHeight + 20; // 加 20px 预留边距(避免滚动条)
}
 
// 1. iframe 加载完成后触发
document.getElementById('myIframe').onload = resizeIframe;
 
// 2. 窗口 resize 时重新计算(可选,应对父窗口缩放)
window.onresize = resizeIframe;
</script>
</html> ==
</html> ==

2025年12月1日 (一) 15:14的版本

赞助列表