我的网站上有交互式背景,但网站的“内容”会干扰。所以我申请了一个职位:fixed;到网站的内容,但在这个内容里面有两个位置的对象:固定的,它们应该随着页面滚动而移动,但现在它们没有。我怎样才能解决这个问题?查看网站 http://buddhatest.comyr.com/
如果你滚动页面,左边的对象和右边的对象应该向下移动,但没有。
最佳答案
fixed
The background is fixed with regard to the viewport. In paged media where there is no viewport, a ‘fixed’ background is fixed with respect to the page box and therefore replicated on every page. Note that there is only one viewport per view. Even if an element has a scrolling mechanism (see the ‘overflow’ property CSS21), a ‘fixed’ background doesn't move with the element.
关于html - 固定对象内的固定对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28185535/