手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

打开SVG图片网页出现提示信息error on line...

时间:2024-10-20 21:39:07

1、图片能正常显示,但是页面出现错误提示:This page contains the follo嘛术铹砾wing errors:error on line 11 at column 7: Opening and ending tag mismatch: path line 0 and svgBelow is a rendering of the page up to the first error.意思是第7行的结束标签missing丢失了

打开SVG图片网页出现提示信息error on line...

2、再次检查代码,问题出现在除去注释代码后的第7行,如图所示,出现问题的代码显示在第10行,这是因为前面有三行绿色的是注释代码,浏览器运行代码报错没有读取注释代码

打开SVG图片网页出现提示信息error on line...

3、将出现错误的代码加上结束符号“/”

打开SVG图片网页出现提示信息error on line...

4、再次通过Google查看SVG图片,网页不再报错

打开SVG图片网页出现提示信息error on line...

5、建立一个html文件“img.html”,通过html引入,html文件代码如下

打开SVG图片网页出现提示信息error on line...

6、用Google打开html文件,显示结果如下

打开SVG图片网页出现提示信息error on line...
© 手抄报圈