Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序:使用定位,在ios中可能会导致横向滚动 #22

Open
smileyby opened this issue May 25, 2021 · 0 comments
Open

小程序:使用定位,在ios中可能会导致横向滚动 #22

smileyby opened this issue May 25, 2021 · 0 comments
Labels

Comments

@smileyby
Copy link
Owner

这样会导致,它占用着空间产生横向滚动条(IOS中)
.btn {
position: absolute;
left: 999px;
top: 999px;
}

这里是为了隐藏元素,我设置按钮的位置为 左999 上999,导致在ios端打开页面的时候会出现横向滚动条。
上面代码做如下修改

.btn {
position: absolute;
left: 0;
top: 0;
opacity: 0;
}

@smileyby smileyby added the 小程序 🌀 小程序 label May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant