SVGs not showing in Windows Phone 8 Phonegap app

那年仲夏 提交于 2019-12-30 20:23:45

问题


Can't seem to find any answers on this.

Developing an HTML5 app with Phonegap and using SVG images. Saving them from Adobe Illustrator's "Save as.." and then using them like normal images in the HTML:

<img src="img/the_image.svg" />

They show up fine in Android and iPhone but Windows Phone 8 shows them as broken links. Anything I'm doing wrong? Does WP8 not support SVGs this way?


回答1:


remove the starting XML tag from the SVG image.

<?xml version="1.0" encoding="utf-8"?>


来源:https://stackoverflow.com/questions/20526492/svgs-not-showing-in-windows-phone-8-phonegap-app

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