Strange scrollbars around the svg background in chrome

后端 未结 3 1351
南笙
南笙 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:20

    In chrome the image seems slightly too big for the container.

    Just add

    overflow:hidden;

    to the container in the CSS, this should stop scrollbars, either that or make the container slightly bigger.

提交回复
热议问题