repeat css background image a set number of times

后端 未结 6 1811
一向
一向 2020-11-30 07:46

is there a way to set the number of times a background image repeats with css?

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 08:04

    I'm not sure what originally motivated this question, but I found it searching for a way to make sure only an integral number of copies of a background image appears (i.e. do not crop the final member of a repeated set of background images.) That can be achieved via the background-repeat: space property.

提交回复
热议问题