1
實例工作: -AMP iframe是不是AMP燈箱
<amp-lightbox id="my-lightbox" layout="nodisplay">
<div class="lightbox" on="tap:my-lightbox.close" role="button" tabindex="0">
<amp-iframe width="350" height="300" layout="fixed" sandbox="allow-scripts allow-same-origin allow-popups" frameborder="0" src="https://ampbyexample.com/"></amp-iframe>
</div>
</amp-lightbox>
<button class="ampstart-btn caps m2" on="tap:my-lightbox" role="button" tabindex="0">Open Iframe in Lightbox</button>
我也試圖操縱的iFrame的75%或600px的從頂部的位置,但它也不能正常工作。
AMP iFrame包含我們想用來獲取用戶在我們的AMP頁面中選擇的交付日期的Jquery UI日曆。
是否有可能獲得並傳遞AMP iFrame中的值?
感謝這真的很有幫助。 –