Javascript 使用intro.js关注单个容器时,将背景扩展到整个页面
我正在使用Javascript 使用intro.js关注单个容器时,将背景扩展到整个页面,javascript,css,intro.js,Javascript,Css,Intro.js,我正在使用intro.js浏览特定元素 introJs("#section1").start() 即使只关注一个元素,我是否有办法将背景扩展到整个页面 (尝试激活底部部分的巡更) 我已尝试覆盖introjs覆盖 .introjs-overlay { width:100%!important; height:100%!important; top:0!important; left:0!important; } 但是将top设置为0会将覆盖部分固定到页面顶部(如果未覆盖,则
intro.js
浏览特定元素
introJs("#section1").start()
即使只关注一个元素,我是否有办法将背景扩展到整个页面
(尝试激活底部部分的巡更)
我已尝试覆盖introjs覆盖
.introjs-overlay {
width:100%!important;
height:100%!important;
top:0!important;
left:0!important;
}
但是将top
设置为0会将覆盖部分固定到页面顶部(如果未覆盖,则它会粘附到指定的元素)。这应该可以修复它:
.introjs-overlay {
position: fixed!important;
}
我的意思是将此添加到您已经进行的覆盖中。固定位置应使覆盖层粘在窗口上,而不是粘在文档上。