Responsive css background images

前端 未结 19 793
北荒
北荒 2020-11-22 05:39

I have a website (g-floors.eu) and I want to make the background (in css I have defined a bg-image for the content) also responsive. Unfortunately I really don\'t have any i

相关标签:
19条回答
  • 2020-11-22 06:32

    Responsive website by add padding into bottom image height/width x 100 = padding-bottom %:

    http://www.outsidethebracket.com/responsive-web-design-fluid-background-images/


    More complicated method:

    http://voormedia.com/blog/2012/11/responsive-background-images-with-fixed-or-fluid-aspect-ratios


    Try to resize background eq Firefox Ctrl + M to see magic nice script i think best one:

    http://www.minimit.com/demos/fullscreen-backgrounds-with-centered-content

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