Google Amp Carousel不会使用NextJS自动播放



轮播中有 3 个内容,但设置属性自动播放并不适用于所有浏览器。我想知道接下来我是否必须做一些具体的事情.js?

轮播中有 3 个内容,但设置属性自动播放并不适用于所有浏览器。我想知道接下来我是否必须做一些具体的事情.js?

<amp-carousel
height="400"
width="400"
type="slides"
autoplay="autoplay"
delay="2000"
loop="loop"
>
<div class="testimonials-card">
<amp-fit-text
width="300"
height="250"
layout="fixed"
max-font-size="25"
>
Share what your customers are saying about your products, your
company...
</amp-fit-text>
<amp-img
src="frederick_mfinanga_avatar.jpg"
width="80"
height="80"
></amp-img>
</div>
<div class="testimonials-card">
<amp-fit-text
width="300"
height="250"
layout="fixed"
max-font-size="25"
>
I've worked with Fred a few times, he's a creative and fun
person to work with
</amp-fit-text>
<amp-img
src="frederick_mfinanga_avatar.jpg"
width="80"
height="80"
></amp-img>
</div>
<div class="testimonials-card">
<amp-fit-text
width="300"
height="250"
layout="fixed"
max-font-size="25"
>
Share what your customers are saying about your products, your
company...
</amp-fit-text>
<amp-img
src="frederick_mfinanga_avatar.jpg"
width="80"
height="80"
></amp-img>
</div>
</amp-carousel>

我正在使用export const config = { amp: true };在 NextJS 上设置 AMP 页面

<amp-carousel height="400" width="400" type="slides" controls="" loop="" autoplay="" delay="2000">...</amp-carousel>

刚刚测试过,它可以工作,没有任何放大器错误

最新更新