css - 使用线性渐变制作 CSS 颜色
解决方案
试试这个代码
从此页面生成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>
推荐阅读
- elasticsearch - Kibana 通配符“不”匹配过滤器
- python - 制作 GAN 并打开 hdf5 文件时我做错了什么?
- python - 如何配置 Visual Studio Code 以使用 Anaconda
- docker - 使用 k8s pv 的 prometheus:打开查询日志文件时出错“file=/prometheus/queries.active err="open /prometheus/queries.active: 权限被拒绝
- powershell - 在 Power Virtual Agents / Power Automate 中运行 Shell 脚本 / Python 脚本
- c++ - 错误:声明冲突'typedef signed char int8_t'
- xml - 哪些链接不应包含在 sitemap.xml 中?
- azure - Azure 云是否知道设备从哪个地理位置将数据发送到 IoT 中心?
- azure-devops - 尝试获取构建工作项时的授权问题
- javascript - 如何使用 moment.js 验证 From vs To 日期?