Background image resizing to fit

前端 未结 2 1959
傲寒
傲寒 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条回答
  • 2021-01-04 23:37

    I guess you're looking for something like that:

    http://css-tricks.com/how-to-resizeable-background-image/

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题