Diagonal Side div color css js

后端 未结 3 1681
刺人心
刺人心 2021-01-25 13:06

i have 2 div like this

3条回答
  •  臣服心动
    2021-01-25 13:28

    A single gradient on the parent will do the visual:

    html {
      min-height:100%;
      background:linear-gradient(140deg, rgb(153, 180, 211)50%, rgb(217, 181, 150) 50%)
    }
    example on HTML background sized at 100% viewport's height at the minimum.

提交回复
热议问题