在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Foundation 均衡器(Equalizer)我们可以在容器元素添加 注意: 滑块需要使用 JavaScript。所以你需要初始化oundation JS: 实例<div class="row" data-equalizer> <div class="medium-4 columns panel" data-equalizer-watch> Lorem ipsum... </div> <div class="medium-4 columns panel" data-equalizer-watch> Sed ut... </div> <div class="medium-4 columns panel" data-equalizer-watch> Lorem ipsum... </div> </div> <!-- Initialize Foundation JS --> <script> $(document).ready(function() { $(document).foundation(); }) </script> 尝试一下 » 不同屏幕的均衡器在均衡器上通过添加
嵌套内容为 实例<!-- The Equalized Container --> <div class="row" data-equalizer="first"> <div class="medium-4 columns"> <div class="panel" data-equalizer-watch="first"> <h3>Panel</h3> <!-- An Equalized Container Inside The Equalized Container --> <div class="row" data-equalizer="second"> <div class="panel" data-equalizer-watch="second"> <h3>Nested Panel</h3> <p>Lorem ipsum...</p> </div> <div class="panel" data-equalizer-watch="second"> <h3>Nested Panel</h3> <p>Lorem ipsum...</p> </div> <div class="panel" data-equalizer-watch="second"> <h3>Nested Panel</h3> <p>Lorem ipsum...</p> </div> </div> <!-- End Nested Equalized Container --> </div> </div> <div class="medium-4 columns"> <div class="panel" data-equalizer-watch="first"> <h3>Panel</h3> <p>Ut enim...</p> </div> </div> <div class="medium-4 columns"> <div class="panel" data-equalizer-watch="first"> <h3>Panel</h3> <p>Lorem ipsum....</p> </div> </div> </div> 尝试一下 » |
请发表评论