它是网格中的单个图像,位于所有其他图像之上,老实说,我不知道为什么并且需要一些帮助。
这是仅在加载页面时发生的事情。
我正在使用 Zurb Foundation Orbit 滑块,我的页面包含这样的部分:
<section class="container">
<div class="row">
<div class="two columns">
</div>
<div class="eight columns">
<div id="featured">
<div class="content">
<ul class="block-grid four-up">
<li><a href="http://wazzup.wedoitforfun.org/" target="_blank" class="sb xlarge flat glossy wazzup"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray nAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray eAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray wAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray aAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray pAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray pAppIcon"></a></li>
<li><a href="#" class="sb xlarge flat glossy light-gray sAppIcon"></a></li>
</ul>
</div>
<div class="content">
<ul class="block-grid four-up">
<li><a href="#" class="sb xlarge flat light-gray glossy about"></a></li>
<li><a href="http://www.scoop.it/t/tooltip" target="_blank" class="sb xlarge flat light-gray glossy tooltip"></a></li>
<li><a href="http://www.scoop.it/t/innovatus" target="_blank" class="sb xlarge flat light-gray glossy innovatus"></a></li>
<li><a href="http://whereismycode.pintolaranja.com" target="_blank" class="sb xlarge flat light-gray glossy whereismycode"></a></li>
<li><a href="http://scrumplicity.net" target="_blank" class="sb xlarge flat light-gray glossy scrumplicity"></a></li>
</ul>
</div>
</div>
</div>
<div class="two columns">
</div>
</div>
</section>
负责设置滑动部分的javascript是这样的:
jQuery(document).ready(function ($) {
$("#featured").orbit({
animation: 'horizontal-push', // fade, horizontal-slide, vertical-slide, horizontal-push
animationSpeed: 800, // how fast animtions are
timer: false, // true or false to have the timer
advanceSpeed: 4000, // if timer is enabled, time between transitions
pauseOnHover: false, // if you hover pauses the slider
startClockOnMouseOut: false, // if clock should start on MouseOut
startClockOnMouseOutAfter: 1000, // how long after MouseOut should the timer start again
directionalNav: true, // manual advancing directional navs
captions: true, // do you want captions?
captionAnimation: 'fade', // fade, slideOpen, none
captionAnimationSpeed: 800, // if so how quickly should they animate in
bullets: false, // true or false to activate the bullet navigation
bulletThumbs: false, // thumbnails for the bullets
bulletThumbLocation: '', // location from this file where thumbs will be
afterSlideChange: function(){}, // empty function
fluid: '640x320' // or set a aspect ratio for content slides (ex: '4x3')
});
});
我一直得到的是第一个网格上的第二个图像被第二个网格上的第二个图像替换。意思是,当我加载页面时,nAppIcon 不显示,而是显示工具提示图标。
然后,如果我单击滑块上的箭头进行导航,所有这些都会消失,并且所有图标都永远在适当的位置,不再重叠。