轮播按钮颜色

时间:2019-04-14 12:07:45

标签: wordpress amp-html

我正在尝试更改.amp-carousel-button中箭头的背景颜色。

我们在谈论“ WORDPRESS”

在自定义css和在“ HEAD”中添加自定义代码的情况下,背景颜色均未更改,但基本颜色仍然保留。 我可能做错了事。

在custum css中,我添加了: 两者都是这样:

/ * Color Carousel Arrows * /
div.amp-carousel-button-prev {
background-color: rgba (150,30,30,0.5);
}
/ * Color Carousel Arrows * /
div.amp-carousel-button-next {
background-color: rgba (150,30,30,0.5);
}

以另一种方式:

/ * Color Carousel Arrows * /
.amp-carousel-button-prev {
background-color: rgba (150,30,30,0.5);
}
/ * Color Carousel Arrows * /
.amp-carousel-button-next {
background-color: rgba (150,30,30,0.5);
}

但这不起作用

所以我试图将这段代码放在网站的头部:

<style amp-custom>
div.amp-carousel-button {
background-color: rgba (150,30,30,0.5);
}
</ Style>

我也输入了

<style amp-custom>
.amp-carousel-button {
background-color: rgba (150,30,30,0.5);
}
</ Style>

任何事情!背景颜色始终保持默认状态

1 个答案:

答案 0 :(得分:0)

我在扩音器游乐场尝试过,并且确实起作用了!

I tried in the amp-playground, and it did work!

相关问题