V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
alex321
V2EX  ›  问与答

想找下这边有木有在关注 foundation 的童鞋

  •  
  •   alex321 · Dec 17, 2013 · 2343 views
    This topic created in 4525 days ago, the information mentioned may be changed or developed.
    想找下这边有木有在关注 foundation 的童鞋。
    最近有个项目中用到了这个响应式的 css 框架,感觉代码干净,相当容易上手。但是捏,在使用过程中遇到一个小问题,就是它的导引功能一直报错,提示“$content_el”未定义之类的错误,追查到 js/foundation/foundation.joyride.js 中的 start 方法中调用如下:
    <code>
    // non configureable settings
    this.settings.$content_el = $this;
    this.settings.$body = $(this.settings.tip_container);
    this.settings.body_offset = $(this.settings.tip_container).position();
    this.settings.$tip_content = this.settings.$content_el.find('> li');
    this.settings.paused = false;
    this.settings.attempts = 0;
    </code>
    接着的 $tip_content 也会同样提示丢失。我猜测是它对应的 <ol class="joyride-list" data-joyride> 声明中缺失了相应说明。
    foundation 官方文档参见:http://foundation.zurb.com/docs/components/joyride.html
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   966 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 20:18 · PVG 04:18 · LAX 13:18 · JFK 16:18
    ♥ Do have faith in what you're doing.