V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Can I use?
http://caniuse.com/
Less
http://lesscss.org
Cool Libraries
Bootstrap from Twitter
Jetstrap
isajdhs
V2EX  ›  CSS

这个网站背景渐变效果怎么实现的?

  •  
  •   isajdhs · 2023-12-09 17:24:11 +08:00 · 1764 次点击
    这是一个创建于 373 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2023-12-09 20:22:08 +08:00
    ltq918
        1
    ltq918  
       2023-12-09 19:42:49 +08:00
    ```css

    .x1e2d8s5 {
    background-image: radial-gradient(rgba(255,255,255,.25),rgba(255,255,255,0) 40%),radial-gradient(hsla(44,100%,66%,1) 30%,hsla(338,68%,65%,1),hsla(338,68%,65%,.4) 41%,transparent 52%),radial-gradient(hsla(272,100%,60%,1) 37%,transparent 46%),linear-gradient(155deg,transparent 65%,hsla(142,70%,49%,1) 95%),linear-gradient(45deg,hsla(213,100%,44%,1),hsla(209,100%,53%,1));
    }

    ```
    ltq918
        2
    ltq918  
       2023-12-09 19:56:33 +08:00
    这个是完整的
    ```css

    .radient-background {
    background-image: radial-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 40%), radial-gradient(hsla(44, 100%, 66%, 1) 30%, hsla(338, 68%, 65%, 1), hsla(338, 68%, 65%, .4) 41%, transparent 52%), radial-gradient(hsla(272, 100%, 60%, 1) 37%, transparent 46%), linear-gradient(155deg, transparent 65%, hsla(142, 70%, 49%, 1) 95%), linear-gradient(45deg, hsla(213, 100%, 44%, 1), hsla(209, 100%, 53%, 1));
    background-position: bottom left, 109% 68%, 109% 68%, center, center;
    background-size: 200% 200%, 285% 500%, 285% 500%, cover, cover;
    background-repeat: no-repeat;
    opacity: .08;
    }

    ```
    isajdhs
        3
    isajdhs  
    OP
       2023-12-09 20:22:08 +08:00
    @ltq918 #1 找到了,谢谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5495 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:41 · PVG 10:41 · LAX 18:41 · JFK 21:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.