我用的是vs 2010版。有没有办法摆脱这个错误 [英] I use vs 2010 version. is there any way to get rid of this error

查看:58
本文介绍了我用的是vs 2010版。有没有办法摆脱这个错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码:





<%div id =divEditPnlonkeyup =enableSaveButton(); onclick =enableSaveButton();onactivate =enableSaveButton();style =WIDTH:804px;runat =server>





我尝试过:



虽然我运行这个..我得到如下所述的错误:

验证(XHTML 1.0 Transitional):属性'onactivate'不是元素'div'的有效属性。



如何解决这个问题?

提前谢谢!

This is my code:


"<% div id="divEditPnl" onkeyup="enableSaveButton();" onclick="enableSaveButton();" onactivate="enableSaveButton();" style="WIDTH:804px;" runat="server">



What I have tried:

While i run this.. i get error as mentioned below:
Validation (XHTML 1.0 Transitional): Attribute 'onactivate' is not a valid attribute of element 'div'.

How can i resolve this?
thanks in advance!

推荐答案

请查看验证 [ ^ ]


你不能在div上使用onactivate - 它不支持它。

它支持的唯一属性是:

You can't use onactivate with div - it doesn't support it.
The only attributes it supports are:
id, class, lang, dir, title, style, align



And

onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup



请参阅HTML5规范: 4.4分组内容 - HTML5 [ ^ ]


这篇关于我用的是vs 2010版。有没有办法摆脱这个错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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