我可以验证<选取框>吗?选取框>
有没有办法验证标签?我有两个具有 OnMouseOver 属性的元素,并且验证器也不验证它们。唯一的错误就是这些。所以如果你知道方法,请分享...
Is there a way to validate the tag? And I have two elements with OnMouseOver attribute, and the validator, too don't validate them. The only errors are these. So if you know a way, please share...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无法验证
There is no way to validate the
<marquee>
tag since it is not a standard html element. You will have to use JavaScript. Here is another SO question that might lead you in the right direction. Javascript Marquee to replace tags<选取框>
?您是来自 90 年代末的时空旅行吗?好吧,笑话先放一边。
从技术上讲,您可以使用一些技巧,例如通过 JavaScript 动态生成此标签。还有更好的、可移植的和广泛接受的解决方法 - 不要使用它。看起来很糟糕。
<marquee>
? Are you travelling in time and came from late 90's?OK, jokes aside.
<marquee>
is not a standard HTML attribute, it was introduced by Microsoft and was never really adopted. Hence the HTML validator will obviously scream.Technically you can use tricks like generating this tag dynamically via JavaScript. There is also much better, portable and widely accepted workaround - don't use it. It looks terrible.
<marquee>
is not a valid HTML tag. It won't validate.