Error: postcss-svgo: Error in parsing SVG: Unquoted attribute value 无法解析svg

把SVG用双引号包起来

background-image: url("data:image/svg+xml;charset=utf-8,\"<svg viewBox=\‘0 0 120 120\‘ xmlns=\‘http://www.w3.org/2000/svg\‘ xmlns:xlink=\‘http://www.w3.org/1999/xlink\‘><defs><line id=\‘l\‘ x1=\‘60\‘ x2=\‘60\‘ y1=\‘7\‘ y2=\‘27\‘ stroke=\‘%23fff\‘ stroke-width=\‘11\‘ stroke-linecap=\‘round\‘/></defs><g><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘ transform=\‘rotate(30 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘ transform=\‘rotate(60 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘ transform=\‘rotate(90 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘ transform=\‘rotate(120 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.27\‘ transform=\‘rotate(150 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.37\‘ transform=\‘rotate(180 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.46\‘ transform=\‘rotate(210 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.56\‘ transform=\‘rotate(240 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.66\‘ transform=\‘rotate(270 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.75\‘ transform=\‘rotate(300 60,60)\‘/><use xlink:href=\‘%23l\‘ opacity=\‘.85\‘ transform=\‘rotate(330 60,60)\‘/></g></svg>\"")

我把 "data:image/svg+xml;charset=utf-8,\"<svg. viewBox .......></svg>\"

用双引号包起来也不行, 然后把 <svg> </svg> 用双引号包起来就行了  注意用反斜杠转义双引号

原文地址:https://www.cnblogs.com/mutaim/p/10339935.html

时间: 01-30

Error: postcss-svgo: Error in parsing SVG: Unquoted attribute value 无法解析svg的相关文章

error C2143: syntax error : missing &#39;;&#39; before &#39;{&#39;

这是我在实现哈夫曼树的时候,遇到的错误,具体为什么我也不清楚!!!因为这是我用学校实验室的电脑编译出现的错误(用的软件是VC6.0,贼老的版本!!!),我自己的是Code Blocks(没有出错)??? 代码如下: for ( i = 1; i <= n; i++ ) { huffNode HT[i](w[i],0,0,0);//初始化前n个节点(构造哈夫曼树的原始节点) } 然后,就有错了(-_-!) error C2057: expected constant expression erro

[Fatal Error] :3:13: Open quote is expected for attribute &quot;{1}&quot; associated with an element type &quot;id&quot;.

用DOM解析XML时出现了如下错误: [Fatal Error] :3:13: Open quote is expected for attribute "{1}" associated with an  element type  "id".org.xml.sax.SAXParseException: Open quote is expected for attribute "{1}" associated with an  element t

Citrix 核心服务器报错Error: IMA Service Error Message -2147483647

ima服务不能启动的问题Error: IMA Service Error Message -214748364 http://support.citrix.com/article/CTX032712 可能是C:\Program Files\Citrix\Independent Management Architecture\ imalhc.mdb文件坏了,先删除这个文件.然后运行dsmaint recreatelhc重新创建这个文件.再重新启动机器或者服务,应该可以解决此问题. 日常要备份c:\

ERROR 1010 (HY000): Error dropping database (can&#39;t rmdir &#39;.\qpweb&#39;, errno: 41) 删库失败问题的解决

Win8 下,MySQL5.5,root 用户登录 MySQL 5.5 Command Line Client,删除 qpweb 数据,执行命令 drop database qpweb;报错信息:ERROR 1010 (HY000): Error dropping database (can't rmdir '.\qpweb', errno: 41)解决方法如下:1. 先在 MySQL CMD 窗口找到库目录: 2. 再在系统 CMD 切换到库目录: 3. 最后将该库目录 qpweb 删除即可:

HTTP Error 500 - Server Error.

Error Details: The FastCGI process exited unexpectedly Error Number: -1073741819 (0xc0000005). Error Description: Unknown Error HTTP Error 500 - Server Error.Internet Information Services (IIS) 在网上找了一大堆资料和在国外论坛详细查询了下,一直没有找到解决办法.php.ini也不知道被我修改了多少次了,也

LINK : fatal error LNK1117: syntax error in option &#39;VERSION:1.6.5&#39;

今天在用vs2015编译ogre 1.6.5的代码时发生连接错误 LINK : fatal error LNK1117: syntax error in option 'VERSION:1.6.5'. 解决:On the Settings (Project > Settings > Linker) removing the "Version" entry. 没有深入搞懂为什么,先Mark下. 参考: http://stackoverflow.com/questions/20

ERROR 1010 (HY000): Error dropping database (can&#39;t rmdir &#39;./test/&#39;, errno: 17)

在删除数据库的时候报标题所示错误 mysql> drop database test; ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17) 问题原因: test目录下存在着MySQL数据库不知道的文件,即MySQL数据库中没有该文件的数据字典信息. 如下所示, [[email protected] data]# cd /usr/local/mysql-advanced-5.6.23-linu

Demystifying ASP.NET MVC 5 Error Pages and Error Logging

出处:http://dusted.codes/demystifying-aspnet-mvc-5-error-pages-and-error-logging Error pages and error logging, both so elementary and yet so complex in ASP.NET MVC. Perhaps complex is not entirely true, but it is certainly not very straight forward fo

一个关于调用函数函参写void的错误error C2143 syntax error missing &#39;)&#39; before &#39;type&#39;

error C2143 syntax error missing ')' before 'type' 错误代码: srand((unsigned)clock(void)); 错误原因: 画蛇添足的写了void 修改: 把void去掉即可 总结: void代表空,就是实实在在的什么都没有,除非是在声明,否则平常用的时候就是空. 一个关于调用函数函参写void的错误error C2143 syntax error missing ')' before 'type'

CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:

看看xcode的具体的描述: CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:. UITableView internal bug: unable to generate a new section map with old