- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。
想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。
10 个月前关闭。
Improve this question
我是第一次学习 SVG 图像,我正在关注在线指南(链接是意大利语,但如果您有兴趣,请访问:https://www.html.it/pag/31776/le-figure-geometriche-principali/)
但是我有一些我无法解决的问题。
我试图在我的 svg 文件中插入简单的几何形状,但我总是收到此错误消息,即使我一次插入一个形状:
This page contains the following errors: error on line 8 at column 11:AttValue: " or ' expected Below is a rendering of the page up to thefirst error.
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//Dtd SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/Dtd/svg11.dtd">
<svg width="800" height="600" viewBox="0 0 800 600" preserveAspectratio="xMinYMin" enable-background="new 0 0 800 600"
version="1.1" xmlns="http://www.w3.org/2000/svg">
<line x1=”10" y1=”10" x2=”100" y2=”100" style=”stroke:red”/>
<polyline points=”30,30 50,50 90,10" style=”stroke:red;fill:none”/>
<circle cx=”100" cy=”100" r=”50" style=”stroke:red;fill:#ff00ee”/>
<rect x=”10" y=”10" rx=”2" ry=”2" width=”100" height=”50" style=”fill:red”/>
<ellipse cx=”100" cy=”100" rx=”70" ry=”50" style=”fill:red”/
</svg>
最佳答案
正如评论中已经提到的,您使用了两个单引号
而不是双引号 "
在下面的代码中,单引号替换为双引号。错误信息不再显示
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<line x1="10" y1="10" x2="00" y2="100" style="stroke:red"/>
<polyline points="30,30 50,50 90,10" style="stroke:red;fill:none"/>
<circle cx="100" cy="100" r="50" style="stroke:red;fill:#ff00ee"/>
<rect x="10" y="10" rx="2" ry="2" width="100" height="50" style="fill:red"/>
<ellipse cx="100" cy="100" rx="70" ry="50" style="fill:red"/>
</svg>
关于xml - SVG : AttValue: "or ' expected 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64863981/
我的XML有点使用rust ,但是我试图用XML创建一个基于本地天气网络的api。但是还没有完成,但是在测试时遇到了错误,这是 error on line 3 at column 16: AttVal
关闭。这个问题是not reproducible or was caused by typos .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 10 个月前
我重命名了我的项目,在完成所有工作并解决了所有错误之后,我在“TakeEditCell.xib”中遇到以下错误: Line 15: AttValue: " or ' expected Line 1
第一行出现错误: 有人能发现吗? 最佳答案 是的,您使用了错误的引号“和”是无效的,并且与“略有不同。 矩形正确。 您是否一直在使用文字处理程序来编辑该文件?如果你有,最好不要这样
我在此处的最后一行收到此错误: 有人知道为什么吗? 文件结构如下: https://stackoverflow.com/questions/3560412/is-it-possible
我是一名优秀的程序员,十分优秀!