<div style="margin-top: -0px;margin-left: -0px; "> <iframe pointer-events:none; width="100%" height="99%" id="mapIframe" name="mapIframe" src="http://hot.icfqs.com:7615/site/tdx-pc-bk-pages/page-ailtxb.html?color=0&bkcolor=000000"marginwidth="0" marginheight="0" border="0" frameborder="0"></iframe> 请禁止对嵌入的页面 上下滚动!但是不能禁用鼠标哦,请改下代码


要禁止嵌入页面的上下滚动但保留鼠标功能,可以通过CSS和JavaScript配合实现。以下是修改后的代码: ```html <div style="margin-top: -0px; margin-left: -0px; position: relative;"> <iframe style="pointer-events: none; width: 100%; height: 99%;" id="mapIframe" name="mapIframe" src="http://hot.icfqs.com:7615/site/tdx-pc-bk-pages/page-ailtxb.html?color=0&bkcolor=000000" marginwidth="0" marginheight="0" border="0" frameborder="0" scrolling="no" ></iframe> <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;"></div> </div> <script> document.getElementById('mapIframe').contentWindow.document.addEventListener('wheel', function(e) { e.preventDefault(); }, { passive: false }); </script> ``` 关键修改点: 1. 添加了`scrolling="no"`属性禁止iframe滚动条 2. 用绝对定位的透明div覆盖iframe实现鼠标穿透 3. JavaScript阻止iframe内部的wheel事件 三条额外注意事项: 1. 跨域限制可能导致JavaScript部分失效,需确保域名权限 2. 透明覆盖层会拦截所有iframe鼠标事件,需根据实际需求调整 3. 不同浏览器对wheel事件的处理可能有差异,需测试兼容性 [2025-06-19 22:12:13 | AI写代码神器 | 346点数解答]
- <div style="margin-top: -0px;margin-left: -0px; "> <iframe pointer-events:none; width="100%" height="99%" id="mapIframe" name="mapIframe" src="http://hot.icfqs.com:7615/site/tdx-pc-bk-pages/page-ailtxb.html?color=0&bkcolor=000000"marginwidth="0" marginheight="0" border="0" frameborder="0"></iframe 请禁止对嵌入的页面 上下滚动!改下代码(281点数解答 | 2025-06-19 22:08:22)76
- <div style="margin-top: -0px;margin-left: -0px; "> <iframe pointer-events:none; width="100%" height="99%" id="mapIframe" name="mapIframe" src="http://hot.icfqs.com:7615/site/tdx-pc-bk-pages/page-ailtxb.html?color=0&bkcolor=000000"marginwidth="0" marginheight="0" border="0" frameborder="0"></iframe> 请禁止对嵌入的页面 上下滚动!但是不能禁用鼠标哦,请改下代码 (346点数解答 | 2025-06-19 22:12:13)83
- <div style="margin-top: -0px;margin-left: -0px; "> <iframe pointer-events:none; width="100%" height="99%" id="mapIframe" name="mapIframe" src="http://hot.icfqs.com:7615/site/tdx-pc-bk-pages/page-ailtxb.html?color=0&bkcolor=000000"marginwidth="0" marginheight="0" border="0" frameborder="0"></iframe> 请禁止对嵌入的页面 上下滚动!但是不能禁用鼠标哦,你刚才的代码改写不对,你禁用了我的鼠标!!!重新改下代码(350点数解答 | 2025-06-19 22:14:24)130
- <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>index</title> <style> html, body { width: 100%; height: 100%; margin: 0; padding: 0; transform: scale(0.822225); transform-origin: top left; /* 保持缩放的基准点在左上角 */ } #__01 { position: absolute; left: 0px; top: 0px; width: 1920px; height: 1080px; } #id1_ { position: absolute; left: 0px; top: 0px;(196点数解答 | 2024-05-28 15:49:16)1582
- [{id:1,src:'/1.jpg'},{id:2,src:'null'},{id:3,src:'/2.jpg'},{id:4,src:'null'},{id:5,src:'/3.jpg'},{id:6,src:'null'}] js转换[{id:1,src:'/1.jpg'},{id:2,src:'/2.jpg'},{id:3,src:'/3.jpg'},{id:4,src:'null'},{id:5,src:'{id:4,src:'null'},'},{id:6,src:'null'}](680点数解答 | 2025-08-04 17:09:03)90
- def fill_and_submit_form(row): print("填充表单并提交...") wait = webdriverwait(driver, 5) # 增加等待时间 try: product_name_input = wait.until(ec.presence_of_element_located((by.xpath, '//*[@id="wcontentpanel"]/div[3]/div/div[2]/form/div[1]/div[3]/div/div/div[1]/input'))) product_category_dropdown = wait.until(ec.element_to_be_clickable((by.xpath, '//*[@id="wcontentpanel"]/div[3]/div/div[2]/form/div[1]/div[4]/div/div/div/span/span/div/div[1]'))) time.sleep(2) # 等待完成(361点数解答 | 2024-11-11 21:56:42)225
- App.vue <template> <div style="padding: 100px 0 0 0"> <div id="header" class="header-v1" style="height: 100px;background-color:rgb(0 137 255 / 70%)"> <div class="header"> <div class="container" style="width: 1500px;height: 100px"> <div id="header-logo" class="right"> <div class="header-logo"><a href="#" id="logo"><img id="logo-default" src="" alt=""/><img style="display:none" id="logo-alternate" src="" alt=""/> </a></div> </div>(31点数解答 | 2025-05-14 09:58:18)167
- <style>#player { margin: 1px auto; max-width: 100%; border-radius: 10px; display: block; } #xjjsp { display: none; } #ckxjj,#gbxjj { width: 100%; height: 40px; border: none; background-color: #f95491; color: #fff; margin-top: 1px; border-radius: 5px; font-size: 18px; cursor: pointer; transition: 0.2s; } #ckxjj:hover,#gbxjj:hover { background-color: #eeb4bf; } .kzsp { width: 100%; display: flex; justify-content: space-between; } .kzsp>button { border: none; height: 40px; padding: 0 30px; font-siz(35点数解答 | 2024-11-06 20:53:40)164
- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>幸运大转盘</title> <link rel="stylesheet" href="style.css"> </head> <body> <div class="wheel-container"> <div class="wheel" id="wheel"></div> <div class="pointer"></div> </div> <button id="spin-button">开始旋转</button> <script src="script.js"></script> </body> </html>(724点数解答 | 2025-06-23 17:31:53)118
- <!DOCTYPE html> <html> <head> <style> body { margin: 20px; font-family: Arial; } .container { width: 800px; height: 600px; border: 2px solid #ccc; position: relative; } .area { position: absolute; border-radius: 10px; padding: 10px; } /* 轮椅体验区 */ #wheelchair { width: 400px; height: 120px; background: #e6f7ff; top: 20px; left: 20px; } #turning { width: 150px; height: 150px; background: #e6f7ff; top: 140px; left: 20px; border-radius: 50%; } /* 拐杖区 */ #crutch { width: 300px;(1089点数解答 | 2025-06-05 23:25:44)186
- turl: function(){ var id = $(this).data('id'); var url1 = "http://{$safe_url}/safe/index?id=" + id; var qrUrl = "/qrcode.php?size=290x290&data="+url1; layer.open({ type: 1, title: '提链', content: '<div style="padding: 15px;">' + '<div style="margin-bottom: 10px;">' + '<div style="font-weight: bold; margin-bottom: 5px;">原始链接:</div>' + '<div style="word-break: break-all;">' + '<a href="'+url(1083点数解答 | 2025-03-11 15:17:09)121
- <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>2048 Game</title> <link rel="stylesheet" href="style.css"> </head> <body> <header> <h1>2048</h1> <button id="newGameButton">New Game</button> <p>Score: <span id="score">0</span></p> </header> <div id="grid-container"> <div class="grid-cell" id="grid-cell-0-0"></div> <div class="grid-cell" id="grid-cell-0-1"></div> <div class="grid-cell" id="grid-cell-0-2">(138点数解答 | 2025-03-05 15:45:36)272