新手 - 需要有关兼容性错误消息的帮助 [英] A Newbie - need help with a compatibility error message

查看:78
本文介绍了新手 - 需要有关兼容性错误消息的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在学习EW4。运行兼容性检查程序后,我遇到错误消息问题。


我正在检查的文件是常规html。 


我得到的错误是:"空元素必须有结束标记,或者开始标记必须以/>结尾""


它引用的行是:


按钮图片:


< img id =" img18" ALT ="画廊"高度= QUOT; 28" onmousedown事件= QUOT; FP_swapImg(1,0," img18’ ,"图像/ button84.jpg")"的onmouseout = QUOT; FP_swapImg(0,0," img18’ ,"图像/ button82.jpg")"的onmouseover = QUOT; FP_swapImg(1,0," img18’ ,"图像/ button83.jpg")"
onmouseup =" FP_swapImg(0,0,'img18','images / button83.jpg')" SRC ="图像/ button82.jpg" style =" border:0" width =" 105">


常规图片:


< img alt =" cracow_krakow"类= QUOT;自动style18"高度= QUOT; 103" LONGDESC = QUOT;图像/波兰/ krakow1.jpg" SRC ="图像/波兰/ krakow1.jpg" width =" 141">



以及描述图像和按钮行为的其他几行。


我找不到任何遗漏/>或者在这里打开标签。 


你能帮助我并指出可能导致这种情况的原因吗?


提前致谢。


Ivona

解决方案

在XHTML中,缺少的是" /"在结束括号中。  < img ...... /> ;, not< img ....>


您无需运行兼容性报告即可查看此内容。 查看代码视图。 如果您正在为页面使用XHTML文档类型,则此错误将以黄色突出显示。


如果您使用的是HTML文档类型,那么您的图片代码将是正确的而没有结束斜杠。


Hi,

I am learning EW4. I have a problem with error messages after I ran compatibility checker.

The file I am checking is regular html. 

The error I get is: "Empty elements must have an end tag, or the start tag must end with />"

The line it refers to is:

button image:

<img id="img18" alt="Gallery" height="28" onmousedown="FP_swapImg(1,0,'img18','images/button84.jpg')" onmouseout="FP_swapImg(0,0,'img18','images/button82.jpg')" onmouseover="FP_swapImg(1,0,'img18','images/button83.jpg')" onmouseup="FP_swapImg(0,0,'img18','images/button83.jpg')" src="images/button82.jpg" style="border: 0" width="105">

regular picture:

<img alt="cracow_krakow" class="auto-style18" height="103" longdesc="images/Poland/krakow1.jpg" src="images/Poland/krakow1.jpg" width="141">

and several other lines describing images and the buttons behavior.

I can't find any missing /> or open tags in here. 

Can you help me and point what else might cause that, please?

Thanks in advance.

Ivona

解决方案

In XHTML, what is missing is the "/" in the closing bracket.  <img ...... />, not <img .... >

You do not need to run a compatibility report to see this.  Look in Code View.  If you are using an XHTML doctype for the page, this error would be highlighted in yellow.

If you were using an HTML doctype, your image tag would be correct without the closing slash.


这篇关于新手 - 需要有关兼容性错误消息的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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