使Zurb Fondation的TwentyTwenty插件可以使用HTML内容而不是图像

时间:2014-07-30 09:52:38

标签: jquery html zurb-foundation

是否可以选择将Zurb Foundation TwentyTwenty plugin与HTML内容一起使用而不仅仅是图像?

这个按预期工作:

<div class="large-4 columns">
    <div class="twentytwenty-container">
      <img src="img/3_1.jpg" />
      <img src="img/3_2.jpg" />
    </div>
  </div>

但是这个没有:

<div class="large-4 columns">
    <div class="twentytwenty-container">
      <div style="width:300px; height:300px;>1</div>
      <div style="width:300px; height:300px;>2</div>
    </div>
  </div>

Here's the source doe on GitHub

这是Fiddle

0 个答案:

没有答案