2017-09-14 33 views
0

從我所瞭解到的<amp-carousel>中,它只有兩種類型的轉盤接口:carouselslides,您可以在AMP示例網站上看到它。我需要創建一個像這樣的多重圓柱旋轉木馬。 AMP轉盤能夠實現嗎?在AMP轉盤上顯示多列

Regular carousel

回答

0

從某種意義上說,是的。 您可以在每個部分下使用slide接口,但使用4個條目。

<amp-carousel height="300" layout="fixed-height" type="slides"> 
    <div> 
     <div class="blue-box"> 1 </div> 
     <div class="red-box"> 2 </div> 
     <div class="green-box"> 3 </div> 
     <div class="yellow-box"> 4 </div> 
    </div> 
    <div> 
     <div class="blue-box"> 9 </div> 
     <div class="red-box"> 8 </div> 
     <div class="green-box"> 7 </div> 
     <div class="yellow-box"> 6 </div> 
    </div> 
    </amp-carousel> 

我的理解不會每次一個條目來移,但我想這將是接近你想要

什麼