Web technology reference for developers
Structure of content on the web
Code used to describe document style
General-purpose scripting language
Protocol for transmitting web resources
Interfaces for building web applications
Developing extensions for web browsers
Learn to make the web accessible to all
Learn web development
Learn to structure web content with HTML
Learn to style content using CSS
Learn to run scripts in the browser
A customized MDN experience
Get real-time assistance and support
All browser compatibility updates at a glance
Learn how to use MDN Plus
Frequently asked questions about MDN Plus
Write, test and share your code
Scan a website for free
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
吸附位置是滚动操作完成后滚动口停止移动的点。设置吸附位置可以创建一个浏览内容的滚动体验,而不需要将内容拖动到视图中。
吸附位置设置在滚动容器上。参见 CSS 滚动吸附属性。