Strange scrollbars around the svg background in chrome

后端 未结 3 1343
南笙
南笙 2021-01-06 06:00

I have a problem adding an svg file as a background. Everything seems allright, but in Google Chrome I get strage inactive scrollbars on the right and bottom of svg, not a c

3条回答
  •  感情败类
    2021-01-06 06:32

    I have also noticed that upon examination of the SVG there may be an overflow value set. However if you remove this value, add enable-background, and make sure the SVG is rounded up or down and does not use a decimal point, it does fix the scroll bar issue in Chrome.

    Try replacing:

    overflow="scroll" xml:space="preserve">
    

    with

    enable-background="new 0 0 1200 581" xml:space="preserve">
    

提交回复
热议问题