最近研究了本站的一些关于幻灯的帖子,颇有心得,修正了一些错误,经过我测试,完美运行,共整理了五种效果。本想设置回复帖子才能浏览本帖内容,却怎么也找不到选项,先放一个吧。其他的以后再放。
先看图:
注意在diy设置的时候,需要设置幻灯的宽度为350px,高度330px
以下是代码:
<style> .bi_ws { float:left; width:350px; height:330px; background-color:#999999; overflow:hidden; }/*幻灯片的整体大小*/ .pi_cx { display:inline; position:relative; float:left; width:337px; height:258px; overflow:hidden; margin:6px 0 3px 6px; }/*大图片区域样式*/ .pi_cx div img { width:337px; height:258px; }/*大图片的大小*/ .bi_ws_op { margin-left: 8px; position:absolute; left:5; bottom:0px; width:322px; height:70px; color:#FFF; }/*字幕区定义*/ .bi_ws_opdiv { position:absolute; left:0; bottom:0px; width:337px; height:78px; background:#000; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=50); }/*标题区背景 透明度50%*/ .bi_ws_op h2 a{ font-size: 18px; color:#FFF; font-weight: bolder; }/*文章标题样式*/ .bi_ws_op h2 a:hover { text-decoration:underline; color:#FF9300; }/*文章标题鼠标经过样式*/ .bi_ws_btn { width:344px; height:60px; float:left;margin-left:6px; }/*下侧缩略图区域样式*/ .bi_ws_btn div { float:left; width:86px; height:60px; cursor:pointer; margin:1px 0px 1px 0px ; opacity:0.5; -moz-opacity:0.5; filter:alpha(opacity=70); }/*下侧缩略图区域中每个缩略图区域样式*/ .bi_ws_btn img { width:80px; height:54px; margin:0px; border:1px solid #ffffff; }/*缩略图样式(非焦点缩略图)*/ .bi_ws .bi_ws_btn .on{ background:url(/forum/static/image/common/1-1.png) no-repeat 0 0; width:86px; height:60px; opacity:1; -moz-opacity:1; filter:alpha(opacity=100); }/*焦点缩略图样式*/ </style> <div class=" bi_ws slidebox"> <div class="pi_cx slideshow"> [loop] <div> <a href="{url}"{target}><img src="{pic}" width="{picwidth}" height="{picheight}" /></a> <div class="bi_ws_opdiv"></div> <div class="bi_ws_op"> <ul> <li> <h2><a href="{url}"{target}>{title}</a></h2> <p><span style="font-size: 12px">{summary}</span></p> </li> </ul> </div> </div> [/loop] </div> <div class="bi_ws_btn slidebar" mevent="mouseover" > [loop1] <div><img src="{pic}" /></div> [/loop1] </div> <script type="text/javascript">runslideshow();</script> </div>
阅读全文
原文链接:https://xdyl.club/1960,转载请注明出处~~~
评论0