简体   繁体   English

此时,元素li上的属性ddata-horizo​​ntalposition不允许-w3c验证程序

[英]Attribute ddata-horizontalposition not allowed on element li at this point- w3c validator

w3c validator shows this error: w3c验证程序显示此错误:

Attribute ddata-horizontalposition not allowed on element li at this point.

<li data-text-id="#bannerscollection_kenburns_photoText4" ddata-horizontalPosition="center" data-verticalPosition="center" data-initialZoom="1" data-finalZoom="1"></li>

Someone please help me 有人请帮我

The attribute ddata-horizontalPosition is not allowed in HTML5. HTML5中不允许使用ddata-horizontalPosition属性。

It probably should be 可能应该是

data-horizontalPosition="center"

See http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes . 请参阅http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes

尝试一下:

<li data-text-id="#bannerscollection_kenburns_photoText4" data-horizontalPosition="center" data-verticalPosition="center" data-initialZoom="1" data-finalZoom="1"></li>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM