gpt4 book ai didi

html - CSS3 不透明度问题

转载 作者:行者123 更新时间:2023-11-28 18:33:18 26 4
gpt4 key购买 nike

这是元素网站:Site Redesign .

我想做的是将每个部分的背景保持在 0.5-0.7 不透明度,但所有内容中的文本保持在 1.0

我已经尝试创建一个不透明度为 1.0 的“文本”类,但这没有任何作用,而且我不想失去当前的不透明度。

最佳答案

我相信您的答案就在这里:CSS opacity only to background color not the text on it? .

您想使用 background 属性指定透明背景。

关于html - CSS3 不透明度问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13637723/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com