gpt4 book ai didi

html - G 加分享按钮不是 W3C 有效

转载 作者:太空宇宙 更新时间:2023-11-04 14:14:55 24 4
gpt4 key购买 nike

如何使这部分 HTML 有效 HTML5?

<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_google_plusone" g:plusone:annotation="none"></a>
.
.
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300
/addthis_widget.js#pubid=ra-xxxxx"></script>

W3C 验证器的结果是这样的:

Warning Line xx, Column xx: Attribute g:plusone:annotation is not serializable as XML 1.0.

Error Line xx, Column xx: Attribute g:plusone:annotation not allowed on element a at this point.

<a class="addthis_button_google_plusone" g:plusone:annotation="none"></a>

谢谢,

最佳答案

这样试试,

 <div class="g-plusone" data-size="tall" data-count="true">
....
</div>

关于html - G 加分享按钮不是 W3C 有效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30096584/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com