wordpress - amp-carousel-button 颜色
问题描述
我正在尝试更改 .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>
任何事物!背景颜色始终保持默认
解决方案
推荐阅读
- git - 无法在 Visual Studio 中进行合并
- c - 如何将输出中显示的内容写入文件?
- php - 未找到 DomPDF 图像或类型未知
- html - 如何有效地为 HTML 或 CSS 中的按钮添加声音?
- xcode - 在 SwiftUI 中刷新 RandomElement()
- php - 为什么 PHP $_SESSION 变量在 header() 方法中使用时不起作用?
- c# - ItemTemplateSelector 和 ListView.ItemTemplate 的区别
- python - 是否可以在 VPS 上将 SQLite 用于 Discord 机器人?
- r - 计算每个唯一元素在列表中出现的次数
- javascript - graphQL 订阅返回 null