SVG height incorrectly calculated in Webkit browsers

后端 未结 9 577
轻奢々
轻奢々 2020-12-24 12:26

I have a issue specific to Webkit browsers (Safari & Chrome, on Mac & PC).

I\'m using Raphael JS to render SVG data and using a responsive layout to scale th

9条回答
  •  Happy的楠姐
    2020-12-24 12:42

    I just set the height to a very large size in the svg to maintain the aspect ratio. Using 100% comes with too many problems. This works better for me because I did not want to use js.

    Full props to: http://www.seowarp.com/blog/2011/06/svg-scaling-problems-in-ie9-and-other-browsers/

    width="1200" height="235.5"

提交回复
热议问题