首页  >  问答  >  正文

css - linear-gradient无效是怎么回事?

background-color: linear-gradient(to bottom, #fc8291, #fa213b);

这行代码在chrome,firefox上均无效,无任何背景色显示,但是background-color: red;是可以正常显示红色的,这是为什么?

为情所困为情所困2712 天前1590

全部回复(1)我来回复

  • PHPz

    PHPz2017-05-16 13:40:09

    语法错误:没-color

    background: linear-gradient(to bottom, #fc8291, #fa213b);

    回复
    0
  • 取消回复