Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法制作响应式 CSS 径向渐变背景?我试过微软的渐变生成器,但它并没有像我想象的那样工作,它显示了很多条带,我希望渐变平滑,它是一个基本的浅灰色 - 白色径向渐变。
做这个:
* { margin: 0px; border: 0px; padding: 0px; } #grad { width: 100vw; height: 100vh; background-image: linear-gradient(180deg, gray, white); }
<body> <div id = 'grad'></div> </body>