当页面内容被滚动时,我正在使用Foundation 5的麦哲伦修复窗口顶部的标题。然而,我没有使用到达点。
通常,我的HTML如下所示:
<article>
<header data-magellan-expedition="fixed">
<h3>title</h3>
</header>
</article>但是,当麦哲伦被触发时,源更改为:
<article>
<header data-magellan-expedition-clone style>
<h3>title</h3>
</header>
<header data-magellan-expedition="fixed" style="position: fixed; top: 0px;">
<h3>title</h3>
</header>
</article>Foundation允许设置一个活动类,但是由于我没有使用到达点,所以不能使用该功能。
如何仅在<header data-magellan-expedition="fixed" style="position: fixed; top: 0px;">被激发后才将类设置为它?
或者,我怎样才能在CSS中具体称呼它呢?
谢谢你的帮助。
发布于 2014-07-11 11:33:57
在css中这样做的方法似乎是:
header[style="position:fixed;"] { ... }没想到这么容易!
https://stackoverflow.com/questions/24579235
复制相似问题