简体   繁体   English

轮播外的导航控件-Zurb Foundation Orbit

[英]Navigation controls outside the carousel - Zurb Foundation Orbit

I am trying to have the Navigation controls just outside the carousel instead of default inside. 我正在尝试将导航控件设置在转盘之外,而不是默认设置在转盘之外。

There's no data-option available for this. 没有可用的数据选项。 So I tried hacking the CSS for the nav arrows to give it negative absolute positioning. 因此,我尝试修改CSS的导航箭头,以使其具有负的绝对位置。

However, the parent container is set to overflow: hidden and hides the arrows. 但是,父容器设置为溢出:隐藏并隐藏箭头。 Is this possible by default? 默认情况下可以吗?

Loooking at your example I was able to apply the following CSS to the ul with the id of #featured1: 查看您的示例,我可以将以下CSS应用于ID为#featured1的ul:

#featured1 {
    width: 90%;
    overflow: hidden;
    padding-left: 10%;
}

Doing so you will need to move the timer in the upper right over a bit and also throw off the caption width. 这样做,您将需要将计时器在右上角稍微移开一点,并且也要放弃字幕宽度。 That is easily done with this css: 这很容易做到这一点的CSS:

.orbit-container .orbit-timer {
    right:70px;
}

.orbit-container .orbit-slides-container > * .orbit-caption {
     width:90%;
}

This solution will make your slider images smaller so you may want to increase the width of .large-10 for this case. 此解决方案将使滑块图像更小,因此在这种情况下,您可能需要增加.large-10的宽度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM