简体   繁体   中英

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

w3c validator shows this error:

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.

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 .

尝试一下:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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