V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
alex321
V2EX  ›  问与答

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

  •  
  •   alex321 · 2013-12-17 14:55:35 +08:00 · 2173 次点击
    这是一个创建于 4303 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想找下这边有木有在关注 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
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1501 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 16:30 · PVG 00:30 · LAX 09:30 · JFK 12:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.