SVG display difference between <img> and <object>
问题 What's the difference between displaying a SVG image in an <img> or <object> tag? I was facing some problems using SVG images in a <img> tag on Android 3.1: The shape in the upper example is an <img> tag and the lowest example is the exact same image but display in an <object> . Why is this displayed a different way? And is an <object> cached like an <img> ? What do you guys suggest? 回答1: Differences when SVG is used as an image (html <img> SVG <image> or CSS background images) no scripting