Why doesn't SVG work on local HTML files?
问题 I'm confused. If I point by browser (Chrome or Safari on OSX) to this web site, it shows all the SVG perfectly: http://emacsformacosx.com/ Now, if I view source on that page, copy it, and paste it into a new HTML document on my desktop, then view that with either browser, I get no SVG at all. Why the difference? Why does SVG work on the web site, but not in the local HTML file? Thanks! 回答1: You renamed it to HTML, and the browser assumes html content.. while the page is text/xml .. if you