【问题标题】:amp-carousel-button COLORamp-carousel-button 颜色
【发布时间】: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>

随便!背景颜色始终保持默认

【问题讨论】:

    标签: wordpress amp-html


    【解决方案1】:

    我在 amp-playground 中尝试过,它确实有效!

    【讨论】:

      猜你喜欢
      • 2022-12-19
      • 1970-01-01
      • 2021-06-26
      • 1970-01-01
      • 2013-05-03
      • 1970-01-01
      • 2012-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多