html - 不支持背景渐变可以使用background-color吗?

标签 html css webkit gradient

<分区>

如何为不支持渐变的设备定义背景颜色?

body {
    background-image: linear-gradient(to right top, #3498db, #1e82b9, #0b6d97, #025877, #034359);
}

最佳答案

您可以简单地使用 background-color 作为后备,请参见代码段:

body {
    background-image: linear-gradient(to right top, #3498db, #1e82b9, #0b6d97, #025877, #034359);
    background-color: blue;
}

关于html - 不支持背景渐变可以使用background-color吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52427158/

上一篇:html - 无法获得正确的 CSS 选择器

下一篇:html - 当我悬停时如何更改特定链接的文本或背景颜色?

相关文章:

javascript - jQuery - 在父页面的 DIV 中加载表单提交(?)

具有并排字段的 CSS 表单...如何垂直对齐标签和字段?

cocoa - 删除 WebView 的 NSUndoManager 的撤消操作

jquery - 如何在 jQuery UI 对话框中显示 IFRAME

html - Django/bootstrap 表单 : how to set and get btn-group value

html - 是否可以从基于 Web 的应用程序执行 Objective C 代码

javascript - Jquery 显示更多,显示更少按钮有任何其他想法

html - 设置表格单元格相对于列中其他单元格的宽度

javascript - Webkit 错误 : Overflow auto triggered after resizing a child element to matching size

swift - 在 WKWebView 中加载本地 Web 文件和资源