feat: 恢复bugfix
This commit is contained in:
@@ -509,7 +509,7 @@ export default function WechatRegister() {
|
|||||||
width="300"
|
width="300"
|
||||||
height="350"
|
height="350"
|
||||||
scrolling="no" // ✅ 新增:禁止滚动
|
scrolling="no" // ✅ 新增:禁止滚动
|
||||||
sandbox="allow-scripts allow-same-origin allow-forms" // ✅ 阻止iframe跳转父页面
|
// sandbox="allow-scripts allow-same-origin allow-forms" // ✅ 阻止iframe跳转父页面
|
||||||
style={{
|
style={{
|
||||||
border: 'none',
|
border: 'none',
|
||||||
transform: 'scale(0.77) translateY(-35px)', // ✅ 裁剪顶部logo
|
transform: 'scale(0.77) translateY(-35px)', // ✅ 裁剪顶部logo
|
||||||
@@ -521,7 +521,6 @@ export default function WechatRegister() {
|
|||||||
// 使用 onWheel 事件阻止滚动 │ │
|
// 使用 onWheel 事件阻止滚动 │ │
|
||||||
onWheel={(e) => e.preventDefault()} // ✅ 在父容器上阻止滚动
|
onWheel={(e) => e.preventDefault()} // ✅ 在父容器上阻止滚动
|
||||||
onTouchMove={(e) => e.preventDefault()} // ✅ 移动端也阻止
|
onTouchMove={(e) => e.preventDefault()} // ✅ 移动端也阻止
|
||||||
|
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
/* 未获取:显示占位符 */
|
/* 未获取:显示占位符 */
|
||||||
|
|||||||
Reference in New Issue
Block a user