0

我使用这个滚动条http://flowplayer.org/tools/demos/scrollable/vertical.html 我注意到它滑动了 3 div.item ...可能 chande 到 2?

4

1 回答 1

2

如果您查看演示的源代码,您会发现它非常简单。更改此部分:

     <!-- first row -->
     <div class="item">

        <!-- image -->
        <img src="http://farm1.static.flickr.com/_m.jpg" />

        <!-- title -->
        <h3>1. Barcelona Pavilion</h3>

        <!-- content -->
        <p>
           The Pavilion was not only a pioneer ...
        </p>

     </div>

     <!-- 2:nd and 3:rd rows -->
     <div class="item"> ... </div>
     <div class="item"> ... </div>

  </div>

  <!-- second element with another three rows (and so on) -->
  <div>
     ...
  </div>

对此:

     <!-- first row -->
     <div class="item">

        <!-- image -->
        <img src="http://farm1.static.flickr.com/_m.jpg" />

        <!-- title -->
        <h3>1. Barcelona Pavilion</h3>

        <!-- content -->
        <p>
           The Pavilion was not only a pioneer ...
        </p>

     </div>

     <!-- 2:nd row -->
     <div class="item"> ... </div>

  </div>

  <!-- second element with another two rows (and so on) -->
  <div>
     ...
  </div>

大多数更改是 HTML 注释。您需要做的就是<div class="item">...</div>在每组项目中少一个。

于 2010-12-15T16:21:07.580 回答