css - linear-gradient无效是怎么回事?
本文介绍了css - linear-gradient无效是怎么回事?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
background-color: linear-gradient(to bottom, #fc8291, #fa213b);
这行代码在chrome,firefox上均无效,无任何背景色显示,但是background-color: red;是可以正常显示红色的,这是为什么?
解决方案
语法错误:没-color
background: linear-gradient(to bottom, #fc8291, #fa213b);
这篇关于css - linear-gradient无效是怎么回事?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文