gpt4 book ai didi

javascript - Windows 10 Internet Explorer 15 版本中的 affix-bottom 问题

转载 作者:行者123 更新时间:2023-11-28 02:19:12 24 4
gpt4 key购买 nike

我正在使用 bootstrap 3,class affix 在所有操作系统和版本中都可以使用,但是到了 Windows 10、Internet Explorer 15 版本 class=affixaffix-top 工作正常,但 affix-bottom 正在从 affix 更改为 affix-bottom

但在其他操作系统和浏览器中它工作正常。这是 Js:

$(".my-affix-div").affix({
offset: {
top: 440,
bottom: 270
}

这是CSS:

.affix{
top:60px;
}
.affix-bottom {
bottom:270px;
position: absolute;
}

最佳答案

插件根据滚动位置打开和关闭此行为(将 CSS 位置的值从静态更改为固定)。

我正在 Internet Explorer 10 上测试

尝试链接

https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_scrollspy_affix2&stacked=h

关于javascript - Windows 10 Internet Explorer 15 版本中的 affix-bottom 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48314432/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com