联系我们
软件销售
投诉邮箱

q@xunruicms.com

首页热点新闻图片幻灯片轮播代码分享
方案栏目:迅睿CMS 发布时间:2019-12-27 12:52:53

首页热点新闻图片幻灯片轮播代码分享

   <!-- 调用含图片新闻点击量较高的3条轮播 -->
                        <div class="bg-white bg-flash">
                            <div class="swiper-container">
                                <div class="swiper-wrapper">
                                    {module module=news thumb=1 order=hits num=3}
                                    <div class="swiper-slide">
                                        <a href="{$t.url}" {if $t.target}target="_blank"{/if} title="{$t.title}"><img src="{dr_thumb($t.thumb, 350, 250)}" style="width:350px;height:245px" /></a>
                                    </div>
                                    {/module}
                                </div>
                                <div class="swiper-pagination"></div>
                            </div>
                            
                            <link rel="stylesheet" href="{HOME_THEME_PATH}swiper/css/swiper.min.css">
                            <script src="{HOME_THEME_PATH}swiper/js/swiper.min.js"></script>
                            <script>                            
                                var swiper = new Swiper('.swiper-container', {
                                    spaceBetween: 30,
                                    autoplay: {
                                        delay: 3500,
                                        disableOnInteraction: false,
                                    },
                                    pagination: {
                                        el: '.swiper-pagination',
                                        clickable: true,
                                    },
                                });
                            </script>
                        </div>


解决方案列表
  • 2019-12-27 13:15:33

  • 2019-12-27 13:48:56

    …… 这也有分享的意义啊?

  • 2019-12-27 13:56:39

    4.3.4首页的是固定的图片,看到有人问,从老版本扣出来的,灵活使用吧!

    回复@Booid.com

  • 2019-12-28 09:27:38

    只要是分享行为,都应该给个赞

  • 2019-12-28 11:17:17

    赞一个哈。

  • 2019-12-28 12:31:23

    记下来,用的时候来拿

  • 2020-05-22 22:49:37

    标记