0
有問題的時候隱蔽舊的HTML代碼以AMP版本:我如何<img>轉化爲AMP在PHP
我有許多圖像文件,但在源代碼中只有寬度值。
<img src="/url-img1.jpg" with="728"></img>
<img src="/url-img2.jpg" with="640"></img>
在AMP版本,我需要增加高度值,如下:
<amp-img src="/url-img1.jpg" width="{widht-of-image}" height="{height-of-image}" layout="responsive"></amp-img>
<amp-img src="/url-img2.jpg" width="{widht-of-image}" height="{height-of-image}" layout="responsive"></amp-img>
誰能請告訴我該怎麼辦呢?