粉底6粘性FOUC [英] Foundation 6 sticky FOUC

查看:100
本文介绍了粉底6粘性FOUC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个粘性元素,数据从底部到底部,但是当我刷新页面时,它在顶部闪烁,然后再粘在底部。

I have a sticky element with data-stick-to-bottom however when I refresh the page, it flashes at the top before sticking to the bottom.

是否有回调或函数来检查基础是否已准备好?

Is there a callback or a function to check if foundation is ready?

推荐答案

通过添加以下内容解决了该问题:

Solved the issue by adding:

$(window).trigger('load.zf.sticky');

在调用我的showBanner函数之前。

Before calling my showBanner function.

这篇关于粉底6粘性FOUC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆