Skip to content

position:sticky 粘性布局 #147

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

Open
smileyby opened this issue Sep 7, 2021 · 1 comment
Open

position:sticky 粘性布局 #147

smileyby opened this issue Sep 7, 2021 · 1 comment
Labels
CSS 🌚 CSS相关

Comments

@smileyby
Copy link
Owner

smileyby commented Sep 7, 2021

html
css

兼容:https://github.com/wilddeer/stickyfill

@smileyby smileyby added the CSS 🌚 CSS相关 label Sep 7, 2021
@smileyby
Copy link
Owner Author

笔记:具有 position: sticky; 属性元素根据正常文档流进行定位,然后相对它最近滚动祖先和最近块级祖先,包括 table-related元素,基于 top right bottom left 的值进行便宜。偏移值不会影响任何其他元素的位置。
参考:https://developer.mozilla.org/zh-CN/docs/Web/CSS/position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CSS 🌚 CSS相关
Projects
None yet
Development

No branches or pull requests

1 participant