【问题标题】:Make CSS color with linear Gradients使用线性渐变制作 CSS 颜色
【发布时间】:2021-04-12 19:54:37
【问题描述】:

我是 CSS 用户的新手,我真的很喜欢这种颜色。有谁知道如何让背景颜色像我指的那张图片一样?

我尝试使用线性渐变,但没有得到它。

【问题讨论】:

    标签: css colors background-color linear-gradients


    【解决方案1】:

    试试这个代码

    从此页面生成https://cssgradient.io/

    .ht{
    background: rgb(77,77,77);
    background: linear-gradient(180deg, rgba(77,77,77,1) 0%, rgba(42,42,42,1) 100%, rgba(0,212,255,1) 100%);width:500px;height:500px;
    }
    <div class="ht"><h1>Cool Background </h1></div>

    【讨论】:

      猜你喜欢
      • 2015-06-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-19
      • 2019-10-06
      • 2021-07-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多