<script>function createFullscreenImage() {const div = document.createElement('div');div.className = 'dynamic-fullscreen-image';div.style.cssText = `position: fixed;top: 0;left: 0;width: 100vw;height: 100vh;background-image: url('https://ts1.tc.mm.bing.net/th/id/R-C.987f582c510be58755c4933cda68d525?rik=C0D21hJDYvXosw&riu=http%3a%2f%2fimg.pconline.com.cn%2fimages%2fupload%2fupc%2ftx%2fwallpaper%2f1305%2f16%2fc4%2f20990657_1368686545122.jpg&ehk=netN2qzcCVS4ALUQfDOwxAwFcy41oxC%2b0xTFvOYy5ds%3d&risl=&pid=ImgRaw&r=0');background-size: cover;background-position: center;background-repeat: no-repeat;z-index: 1;`;document.body.appendChild(div);}// 动态创建一个 iframe 来加载百度function createBaiduIframe() {const container = document.createElement('div');container.style.cssText = `position: relative;z-index: 2;width: 100%;height: 100%;`;const iframe = document.createElement('iframe');iframe.className = 'dynamic-baidu-iframe';iframe.src = 'https://www.baidu.com';iframe.title = '百度一下';iframe.style.cssText = `width: 100%;height: 100%;border: none;`;container.appendChild(iframe);document.body.appendChild(container);}// 如果你希望页面加载后用 JS 动态添加这些元素,取消下面的注释:// window.addEventListener('DOMContentLoaded', function () {createFullscreenImage();// createBaiduIframe(); });// </script>