Pinterest Pin It按钮代码打破网站



我正在尝试使用Pinterest pin it按钮,似乎每次我将javascript添加到我的页面时,它都会中断

<a data-pin-do="buttonBookmark" data-pin-custom="true" data-pin-round="true" href="https://www.pinterest.com/pin/create/button/"><img src="https://mysitehere.net/blog/wp-content/uploads/2020/10/Pinterest.png"/></a>
<script async defer src="//assets.pinterest.com/js/pinit.js">

<script>标签不是一个void元素,因此应该始终关闭。

<script async defer src="//assets.pinterest.com/js/pinit.js"></script>
  • 来源@ https://www.w3schools.com/tags/att_script_src.asp

了解更多
  • 空元素@ https://developer.mozilla.org/en-US/docs/Glossary/Empty_element

最新更新