[英]Bootstrap affix scroll issue with IE and Firefox
這是Bootstrap中的一個錯誤,已在此處解決: https : //github.com/iainvdw/bootstrap/commit/c786f454c9175cce5bcf9a7074a3e206533b3d1a
但是,它似乎不包含在您網站上使用的3.1.1版本中。
要手動執行此操作,請替換此行:
offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
有了這個:
offsetBottom != null && (Math.ceil(position.top) + this.$element.height() >= scrollHeight - offsetBottom) ? 'bottom' :
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.