p:carousel只显示第一张和第三张幻灯片

时间:2018-05-14 16:21:23

标签: primefaces

我有一个问题与primefaces轮播它只显示2项5,第一和第三只:

<p:carousel numVisible="0" style="height: 350px !important;width: 860px !important;;"  autoPlayInterval="4000" firstVisible="0" itemStyleClass="width:870px;height:350px;" circular="true">
    <p:panel styleClass="carousel-panel">
        <p:graphicImage width="877" height="350"  value="/home_page/Carr0.png" />
    </p:panel>   
    <p:panel styleClass="carousel-panel">
        <p:graphicImage width="877" height="350"  value="/home_page/Carr1.png" />
    </p:panel>
    <p:panel styleClass="carousel-panel">
        <p:graphicImage width="877" height="350"  value="/home_page/Carr2.png" />
    </p:panel>
    <p:panel styleClass="carousel-panel">
        <p:graphicImage width="877" height="350"  value="/home_page/Carr3.png" />
    </p:panel>
    <p:panel styleClass="carousel-panel">
        <p:graphicImage width="877" height="350"  value="/home_page/Carr4.png" />
    </p:panel>
</p:carousel>

0 个答案:

没有答案