[英]semantic ui - remove sticky from an element after page load
I have a project using Semantic UI that has a sticky header.我有一个使用带有粘性标题的语义 UI 的项目。 on certain events, content is loaded that requires the header to become non-sticky.
在某些事件中,加载的内容要求标头变得非粘性。
I attempted to use $('header.ui.sticky').sticky('remove')
, based on a quick skimming of the source code, but it seems to be incorrect.基于对源代码的快速浏览,我尝试使用
$('header.ui.sticky').sticky('remove')
,但它似乎不正确。
How do I remove sticky after instantiating?实例化后如何去除粘性?
You should use destroy
instead of remove
.您应该使用
destroy
而不是remove
。
$('.ui.sticky')
.sticky('destroy')
;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.