Chrome not rendering SVG referenced via

后端 未结 21 1685
孤独总比滥情好
孤独总比滥情好 2020-11-29 02:35

I am having issues with google chrome not rendering svg with an img tag. This happens when refreshing the page and initial page load. I can get the image to show up by \"

21条回答
  •  不知归路
    2020-11-29 03:13

    .svg image does not have it's initial height and width. Therefore it is not visible. You have to set it.

    You can do either in-line or in css file:

    In-line:

    logo
    

    Css file:

    logo
    
    .image {
        width: 100px;
        height: 50px;
    }
    

提交回复
热议问题