css 如何使相同的背景一样,在 Bootstrap 的主页?

kjthegm6  于 2023-01-27  发布在  Bootstrap
关注(0)|答案(1)|浏览(131)
body>div {
  background-color: red;
}
<div>Need more here</div>

有人能帮助创建与 Bootstrap 主页相同的背景吗?
我试过渐变,但是不起作用。我不能把4种颜色在中间的白色组合在一起。

fdbelqdn

fdbelqdn1#

.bs {
  aspect-ratio: 1/1;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,1) 85%), radial-gradient(ellipse at top left, rgba(13,110,253,0.5), transparent 50%),radial-gradient(ellipse at top right, rgba(255,228,132,0.5), transparent 50%),radial-gradient(ellipse at center right, rgba(112.520718,44.062154,249.437846,0.5), transparent 50%),radial-gradient(ellipse at center left, rgba(214,51,132,0.5), transparent 50%);
}
<div class="bs"></div>

相关问题