Home  >  Q&A  >  body text

css - Why is linear-gradient invalid?

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

This line of code is invalid on Chrome and Firefox. No background color is displayed, but background-color: red; can display red normally. Why is this?

为情所困为情所困2712 days ago1591

reply all(1)I'll reply

  • PHPz

    PHPz2017-05-16 13:40:09

    Syntax error: no -color

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

    reply
    0
  • Cancelreply