Stretch and scale a CSS image in the background - with CSS only

后端 未结 22 2197
迷失自我
迷失自我 2020-11-22 01:37

I want that my background image stretch and scale depending on the browser viewport size.

I\'ve seen some questions on Stack Overflow that do the job, like

22条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 01:50

    Use the Backstretch plugin. One could even have several images slide. It also works within containers. This way for example one could have only a portion of the background been covered with an background image.

    Since even I could get it to work proves it to be an easy to use plugin :).

提交回复
热议问题