WhatsApp我嘗試在AMP 頁面3 秒后顯示氣球按鈕,但仍然失敗。我嘗試在inspectelement in中進行調試Chrome,但沒有發現任何錯誤。這是代碼:CSS:<style amp-custom> .hide { display: none; }</style>HTML:...<script id="script1" type="text/plain" target="amp-script"> setTimeout(function(){ document.getElementById('wabox').classList.remove('hide'); }, 3000);</script><a id="wabox" rel="nofollow" href="https://api.whatsapp.com/send?phone=XXXXXX&text=Hi%2C%20I%20am%20Interested..." class="wafloat hide" target="_blank"> <i class="fa fa-whatsapp my-float gacontact wafloatx"> <amp-img alt="Contact us" width="64" height="64" src="img/wa-min.webp"> </amp-img> </i></a>...任何想法?
如何在 AMP 頁面中顯示 3 秒后的元素?
慕萊塢森
2023-03-03 10:17:03