discuz 门户上一篇,下一篇缩略图显示分享
到template\default\portal\view
替换代码
我是分别给上一篇下一篇加了个DIV 方便好控制,如果有模板的找对应的文件view
02 css控制也给出
.a_photo { float:left;margin:-129px 0 0 10px;background:#fff;width: 120px;height: 120px;}
.a_photo img { width: 120px;height:90px;}
.a_photo li{ background: #E6E6E6 none repeat scroll 0% 0%;color: #333;text-align: center;width: 120px;height:30px;line-height: 30px;list-style:none; }
.next_photo {float:right;margin:-129px 10px 0 0;background:#fff;width: 120px;height: 120px;}
.next_photo a{float:right;}
.next_photo a img{width: 120px;height: 90px;}
.next_photo li{background: #E6E6E6 none repeat scroll 0% 0%;color: #333;text-align: center;width: 120px;height: 30px;line-height: 30px;list-style:none;}
<!--{if $article['prearticle']}--><em>{lang pre_article}<a href="{$article['prearticle']['url']}">{$article['prearticle']['title']}</a></em><!--{/if}--> <!--{if $article['nextarticle']}--><em>{lang next_article}<a href="{$article['nextarticle']['url']}">{$article['nextarticle']['title']}</a></em><!--{/if}--> |
替换代码
<div class="a_photo"> <!--{if $article['prearticle']}--><a href="{$article['prearticle']['url']}"> <img src="image/xgt/$article['prearticle'][pic]" alt="$article['prearticle'][title]"/><li href="{$article['prearticle']['url']}">{lang pre_article}</li><!--{/if}-- </a> </div> <div class="next_photo"> <!--{if $article['nextarticle']}--><a href="{$article['nextarticle']['url']}"> <img src="image/xgt/$article['nextarticle']['pic']" alt="$article['nextarticle']['title']"/><li href="{$article['prearticle']['url']}">{lang next_article}</li></a> |
我是分别给上一篇下一篇加了个DIV 方便好控制,如果有模板的找对应的文件view
02 css控制也给出
.a_photo { float:left;margin:-129px 0 0 10px;background:#fff;width: 120px;height: 120px;}
.a_photo img { width: 120px;height:90px;}
.a_photo li{ background: #E6E6E6 none repeat scroll 0% 0%;color: #333;text-align: center;width: 120px;height:30px;line-height: 30px;list-style:none; }
.next_photo {float:right;margin:-129px 10px 0 0;background:#fff;width: 120px;height: 120px;}
.next_photo a{float:right;}
.next_photo a img{width: 120px;height: 90px;}
.next_photo li{background: #E6E6E6 none repeat scroll 0% 0%;color: #333;text-align: center;width: 120px;height: 30px;line-height: 30px;list-style:none;}
免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。
热门教程
discuz电脑版、手机版去除标题title中的PoweredbyDisc2018-12-27
Discuz 触屏手机版支持视频播放的方法2018-12-27
discuz手机版支持视频播放的修改方法2018-12-27
Discuz! 程序 X3.2、X3.3升级3.4教程2018-12-27
discuz X3以及X3.4论坛搬家完美详细教程2019-01-02
怎么开启手机版2018-12-25
去掉Discuz论坛底部的Powered 等版权信息2018-12-27
discuz! x3.4插件位置DZ论坛X3版本插件在哪个文件夹?2018-12-26
Mysql修改端口号后织梦dedecms的修改方法2018-12-27
Discuz!X3.2论坛实现全站HTTPS终极方法教程2018-12-28