主题 : 图片轮播新闻,class类不一致,怎么做置标? |
级别: 童生
![]() |
1# 发表于:2019-02-18 10:10:40 IP:219.97.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
3# 发表于:2019-02-18 10:15:28 IP:219.97.*.*
回复第2楼
默认的是flash吧?自己写应该怎么写呢?if 第一篇 else 余下的 end 这种写法怎么写? |
||
---|---|---|---|
级别: 论坛管理员
![]() |
4# 发表于:2019-02-18 10:17:14 IP:117.68.*.*
您好 您要自己写的话 可以模仿我们现在的index前台 我们现在是有一个轮播功能的 您部署后可以在模板哪里找到index.html这个页面 里面有的
|
||
---|---|---|---|
级别: 论坛管理员
![]() |
5# 发表于:2019-02-18 10:20:09 IP:117.68.*.*
<div class="bd" data-scro="list">
[@cms_content_list typeId='2' recommend='1' channelId='75,76' orderBy='4' titLen='22' channelOption='0' dateFormat='yyyy-MM-dd'] <ul> [#list tag_list as a] <li class="item" [#if a_index<1]style="left:0;"[/#if]><a href="${a.url}" target="_blank"><img src="${a.typeImg!}"><div class="banner-title"><i class="Cpic"></i><span>[@text_cut s=a.title len=titLen /]</span></div></a></li> [/#list] </ul> [/@cms_content_list] </div> 这个是我们轮播的代码 您可以看下 |
||
---|---|---|---|
级别: 童生
![]() |
6# 发表于:2019-02-18 10:26:03 IP:219.97.*.*
回复第4楼
找到了,谢谢! [@cms_content_list channelId='101' count='5' titLen='20' dateFormat='MM-dd' channelOption='1' typeId='2'] [#list tag_list as a] [#if a_index<1] <div class="item active"> <a href="${a.url}"><img src="${a.typeImg!site.defImg}"></a> <div class="carousel-caption"> <p>[@text_cut s=a.title len=titLen append=append/]</p> </div> </div> [#else] <div class="item"> <a href="${a.url}"><img src="${a.typeImg!site.defImg}"></a> <div class="carousel-caption"> <p>[@text_cut s=a.title len=titLen append=append/]</p> </div> </div> [/#if] [/#list] [/@cms_content_list] |
||
---|---|---|---|
1
共1页