background-size:1000%; doesn't work properly in Chrome

后端 未结 4 1522
无人及你
无人及你 2020-12-05 04:35

I\'m using an svg image as a background. I\'m trying to use CSS3\'s background-size: 100% 100%; but it doesn\'t seem to work, even in browsers which should supp

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-05 05:31

    Here's a workaround:

    Open your .svg file, find the tag at the beginning and add the following property inside it:

    preserveAspectRatio="none"
    

    Source: http://www.yootheme.com/support/question/6801?order=modified

提交回复
热议问题