amp-img的URL链接
如何放大图像url而不是常规图像?
我已经尝试过以常规的方式做一个amp-html,但它不起作用。
发布于 2020-04-23 23:53:50
您必须像这样添加AMP Carousel:
<amp-carousel id="custom-button" width="400" height="300" layout="responsive" type="slides" autoplay delay="2000">
<a href="https://www.example.com/amp/" target="_blank"> <amp-img src="https://www.example.com/wp-content/uploads/2020/04/amp_img_1.jpg" width="400" height="300" layout="responsive" alt="AMP Carousel"></amp-img></a>
<a href="https://www.example2.com/amp/" target="_blank"> <amp-img src="https://www.example.com/wp-content/uploads/2020/04/amp_img_2.jpg" width="400" height="300" layout="responsive" alt="AMP Carousel"></amp-img></a>
</amp-carousel>然后你必须像这样在锚标签上添加CSS:display:grid;
https://stackoverflow.com/questions/58913663
复制相似问题