页面加载完成后,再执行Pinterest代码

Html:Pinterest Widget builder

<center>
<a data-pin-do="embedUser" data-pin-board-width="800" data-pin-scale-height="200" data-pin-scale-width="100" href="https://www.pinterest.com/tiangong_space/"></a >
</center>

JavaScript:

<script>
window.addEventListener("load", function() {
  var script = document.createElement("script");
  script.src = "https://assets.pinterest.com/js/pinit.js";
  document.body.appendChild(script);
});
</script>

css控制:

iframe[src*="pinterest"] {
  display: none;
}

免责声明|Disclaimer:本站信息仅供参考;作者概不负任何责任。This Site's Informations Provide For Reference Only; The Author Do Not Take Any Responsibilities At All.

©理丠

cc by-nc-nd

——作者|Author

联系|Email

本网站使用cookies,隐私政策|Privacy Policy