<分区>
<分区>
如何为不支持渐变的设备定义背景颜色?
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/
相关文章:
javascript - jQuery - 在父页面的 DIV 中加载表单提交(?)
cocoa - 删除 WebView 的 NSUndoManager 的撤消操作
jquery - 如何在 jQuery UI 对话框中显示 IFRAME
html - Django/bootstrap 表单 : how to set and get btn-group value
html - 是否可以从基于 Web 的应用程序执行 Objective C 代码
javascript - Jquery 显示更多,显示更少按钮有任何其他想法
javascript - Webkit 错误 : Overflow auto triggered after resizing a child element to matching size