1

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>

有人请帮助我

4

2 回答 2

0

ddata-horizontalPositionHTML5 中不允许使用该属性。

应该是

data-horizontalPosition="center"

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

于 2013-04-15T13:33:53.520 回答
0

试试这个:

<li data-text-id="#bannerscollection_kenburns_photoText4" data-horizontalPosition="center" data-verticalPosition="center" data-initialZoom="1" data-finalZoom="1"></li>
于 2013-04-30T11:43:17.147 回答