Firefox not displaying SVG

僤鯓⒐⒋嵵緔 提交于 2019-12-07 19:39:29

问题


I have a page that uses SVG to make an image map.

Works fine in IE9 and Chrome but FireFox and Opera are cropping the images - though rollovers do still work.

The site is here: http://www.kollegetown.com

Anyone know why this might be happening?


回答1:


Just add this (or something equivalent) to your stylesheet:

svg { 
  height: 100%;
  width: 100%;
}


来源:https://stackoverflow.com/questions/13568915/firefox-not-displaying-svg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!