IE11 meta element Breaks SVG

前端 未结 7 1809
半阙折子戏
半阙折子戏 2020-12-03 02:38

I\'ve embedded an SVG files data directly into my html. It shows in Chrome and Firefox, but in IE11 it doesn\'t show at all. The pastebin link to the SVG is http://pastebin

7条回答
  •  自闭症患者
    2020-12-03 03:24

    After trying the other suggestions to no avail I discovered that this issue was related to styling for me. I don't know a lot about the why but I found that my SVGs were not visible because they were not holding their place in the DOM.

    In essence, the containers around my SVGs were at width: 0 and overflow: hidden.

    I fixed this by setting a width on the containers but it is possible that there is a more direct solution to that particular issue.

提交回复
热议问题