1

我将 zurb-foundation gem 从 4.2.3 更新到 4.3.1 - Orbit 不再有效。

点出现并循环,但不显示图像。

我需要让新版本正常工作,或者恢复到以前工作的版本。

        <div id="featured"><ul data-orbit>
        <li><img src="http://placehold.it/1200x500&text=Slide Image 1" alt="slide image">
        <div class="orbit-caption">Caption 1</div>
        </li>
        <li><img src="http://placehold.it/1200x500&text=Slide Image 2" alt="slide image"> 
         <div class="orbit-caption">Caption 2</div>
          </li>
          <li><img src="http://placehold.it/1200x500&text=Slide Image 3" alt="slide image">
         <div class="orbit-caption">Caption 3</div>
          </li>
        </ul></div>

是html代码。我正在使用默认的 css 样式并链接到foundation.min.js。如果我将链接更改为foundation.js,那么它根本不起作用,我会看到一个巨大的列表。

请帮忙 - 我在截止日期前已经浪费了几天时间。

4

1 回答 1

1

I was having a similar problem when I updated Foundation in my gemfile. I was getting errors with Abide and Orbit. Turns out that they changed a few things in the "foundation_and_overrides.scss" file that were causing strange unintended issues.

My fix was to simply copy out the changes I had made to that file and then just run the install again for foundation.

rails g foundation:install

I didn't want it to overwrite any of my files, so when it asked, I simply told it to skip them.

Hope this helps someone! It was a very frustrating issue and I was unable to receive any help from Zurb on the matter.

于 2013-08-22T03:40:55.083 回答