-
Notifications
You must be signed in to change notification settings - Fork 329
p161:第 34 滚动提示,关于 background-attachment
代码问题
#85
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
Labels
Comments
Open
我也遇到了这个问题,请问该怎么解决! |
可以认为是浏览器 bug。楼上的几位兄弟可以验证一下目前最新的 Chrome 还有没有这个问题。 |
两年了~突然收到回复,还是挺感动的! |
我测试了一下,MacBook Pro + Chrome v68 + ( 自带显示屏 vs 外接显示器 ),没有发现任何异常。 判定为当时 Chrome 版本在高分屏下的 此帖就关闭了哈。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
测试环境: macOS 11.13.3, Chrome 64
p161,关于滚动提示的 css 代码,理想效果如下:

下面是我的实现完整代码,和书中一致:
上面的代码,两层背景一起滚动,
background-attachment: local, scroll;
未生效,好像attachment
只接受一个单一值,不能用逗号分隔多个参数?谢谢。
The text was updated successfully, but these errors were encountered: