【发布时间】:2018-03-15 07:11:36
【问题描述】:
我正在使用 Ionic 2 开发一个应用程序。现在,我有这种风格:
ion-content {
background-image: url('/assets/images/orange-background.svg');
background-repeat: no-repeat;
background-size: 101%;
}
当我 ionic serve 这工作正常,但是当我将新版本上传到 Ionic View 频道时,此示例不适用于 background-image 和 .svg 的任何示例。
我已经尝试过Ionic - svg does not appear,但没有成功。
提前致谢。
编辑 1
我已经在background-image中尝试过这个网址:
assets/images/orange-background.svg
/assets/images/orange-background.svg
../assets/images/orange-background.svg
./assets/images/orange-background.svg
这些都不起作用:'(
编辑 2
我刚刚发现这个问题只发生在 iOS 上。
【问题讨论】:
标签: svg ionic3 ionic-view