【问题标题】:A transparent image I'm linking to isn't transparent when being displayed我链接到的透明图像在显示时不透明
【发布时间】:2020-08-09 06:59:22
【问题描述】:

所以标题说明了一切,我已经尝试了一些不同的绝对透明图像,它们都只显示透明图像具有的白色和灰色背景。

我尝试将style="transparent" 添加到图像标签中,但它没有做任何事情。如果有影响,它就是一个 React 应用程序。它显示在常规的 html 表格中。

编辑,我的代码:

<img src="https://w0.pngwave.com/png/1013/469/computer-icons-check-mark-symbol-ok-png-clip-art-thumbnail.png"  styles="transparent" width="50px" height="50px"/>;

提前致谢!

【问题讨论】:

    标签: html reactjs jsx


    【解决方案1】:

    您使用的图像不透明,图像创建者在其上添加了一些纹理以使其看起来像透明。 请改为查看此图片

    <img src="https://cdn3.iconfinder.com/data/icons/flat-actions-icons-9/792/Tick_Mark_Dark-512.png">
    

    【讨论】:

    • 一个人为什么要这样做?
    猜你喜欢
    • 1970-01-01
    • 2016-12-02
    • 2011-02-05
    • 1970-01-01
    • 2011-06-22
    • 1970-01-01
    • 1970-01-01
    • 2011-09-15
    • 2020-05-20
    相关资源
    最近更新 更多