[英]How Do You Compensate For Scroll Bar In Browser?
当滚动条出现并将包装纸从中心移开时,是否可以动态补偿?
What I tend to do with layouts that are very sensitive to the scroll bar disappearing (like centered elements) is enforce a scroll bar on every page: 我倾向于对滚动条消失非常敏感的布局(例如居中的元素)要做的是在每个页面上强制使用滚动条:
body { overflow-y: scroll }
this is the one thing that I think Internet Explorer handles better by default: It always reserves space for the scoll bar, allowing for a much smoother experience when switching between pages on the same site. 这是我认为默认情况下Internet Explorer可以更好地处理的一件事:它始终为scoll栏保留空间,当在同一站点上的页面之间切换时,可以提供更加流畅的体验。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.