gpt4 book ai didi

jquery - 是否可以在纯 html 5 中创建它

转载 作者:太空狗 更新时间:2023-10-29 15:42:25 25 4
gpt4 key购买 nike

我需要创建 this effect在 HTML 中“Colhemos ideias, semeamos futuro...”

这可能吗?

enter image description here

基本上,它是一个白框,不透明度为 0.7,后面有一张背景图片。文本必须在白框中,但字母需要充当 mask 以允许背景图像通过它们显示。

最佳答案

这(理论上)可以通过图像 mask 实现,目前还不是官方标准的一部分。目前,掩码仅在 webkit 引擎中可用。

支持:http://caniuse.com/#search=mask

示例:http://trentwalton.com/2011/05/19/mask-image-text/

除此之外,在我的脑海中,我认为纯 CSS+HTML5 是不可能的。

关于您的示例...我认为这只是一个透明的 .png

关于jquery - 是否可以在纯 html 5 中创建它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10349812/

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