CSS:更改整页JS上的箭头? [英] CSS: change arrows on fullpage JS?

查看:152
本文介绍了CSS:更改整页JS上的箭头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用fullpageJS https://github.com/alvarotrigo/fullPage.js/制作我的网站. 但是,当尝试更改箭头样式时:

I am using fullpageJS https://github.com/alvarotrigo/fullPage.js/ to make my website. However when trying to change the arrow style:

.controlArrow.prev {
    left: 50px;
    background: url(left.png);
    background-repeat: no-repeat;
}

.controlArrow.next {
    right: 50px;
}

这是行不通的,任何人都可以解释原因吗?

It doesn't work, can anyone explain why?

推荐答案

扩展@Alvaro的答案,只需用图像替换默认的边框箭头,如下所示:

Extending @Alvaro's answer, all you need to replace the default border-made arrows by images is as follow:

.fp-controlArrow.fp-prev {
    left: 0;
    border: none;
    width: 50px;
    height: 101px;
    background: url(left.png) no-repeat;
    cursor: pointer;
}
.fp-controlArrow.fp-next {
    right: 0;
    border: none;
    width: 50px;
    height: 101px;
    background: url(right.png) no-repeat;
    cursor: pointer;
}

这篇关于CSS:更改整页JS上的箭头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆