Background image resizing to fit

前端 未结 2 1972
傲寒
傲寒 2021-01-04 23:21

I\'m trying to make the background image as professional as possible so I\'m thinking it\'s best to resize it based on the size of the browser or the resolution (not sure wh

2条回答
  •  梦毁少年i
    2021-01-04 23:38

    You will need to stick to CSS 3 background-size property to achieve this: http://webdesign.about.com/od/styleproperties/p/blspbgsize.htm
    Without using CSS 3 you cannot resize the background image in any way on the client.

提交回复
热议问题