SVG 未显示在 Windows Phone 8 Phonegap 应用程序中 [英] SVGs not showing in Windows Phone 8 Phonegap app

查看:20
本文介绍了SVG 未显示在 Windows Phone 8 Phonegap 应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

似乎无法找到任何答案.

Can't seem to find any answers on this.

使用 Phonegap 和 SVG 图像开发 HTML5 应用程序.从 Adob​​e Illustrator 的另存为.."中保存它们,然后像​​ HTML 中的普通图像一样使用它们:

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" />

它们在 Android 和 iPhone 中显示良好,但 Windows Phone 8 将它们显示为断开的链接.我做错了什么吗?WP8 不支持这种方式的 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?

推荐答案

从 SVG 图像中删除起始 XML 标记.

remove the starting XML tag from the SVG image.

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

这篇关于SVG 未显示在 Windows Phone 8 Phonegap 应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆