【发布时间】:2019-09-04 14:30:03
【问题描述】:
我正在尝试更改 .amp-carousel-button 中箭头的背景颜色。
我们谈论的是“WORDPRESS”
无论是自定义css还是在“HEAD”中添加自定义代码,背景颜色都没有改变,但基本颜色保持不变。 我可能做错了什么。
在我添加的自定义 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>
随便!背景颜色始终保持默认
【问题讨论】: