Is it possible to change only the Y value of background position in CSS?

后端 未结 6 2174
有刺的猬
有刺的猬 2021-01-19 06:56

Is it possible to change only Y value of background position in CSS?

background-position-y is not a valid solution.

6条回答
  •  孤独总比滥情好
    2021-01-19 07:01

    No, that's not possible. While background-position allows only one value to be set, this would define x only and make y center. Everything else, like background-position-y is non-standard and therefore only supported in some browsers.

提交回复
热议问题