找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
楼主: admin

DIY简洁的有序列表素材

 火... [复制链接]
发表于 2014-12-23 17:48:38 | 显示全部楼层

尊敬的站长,我一直学您发的教程,看您教程做了轮播图样式,可是轮播图超过了总区域的范围,怎么办?我把轮播图的大小都调了,还是不一样。。帮帮忙麽?
回复 0 1

使用道具 举报

发表于 2014-12-25 19:02:23 | 显示全部楼层
好东西要不要都得顶。
回复 0 1

使用道具 举报

发表于 2014-12-25 22:13:52 | 显示全部楼层
回复

使用道具 举报

发表于 2014-12-26 15:31:54 | 显示全部楼层
<style type="text/css">
/* case */
.case{margin:0 auto;width:auto;}
.case li{float:left;display:inline;margin-right:22px;margin-left:22px;width:275px;height:215px; background:url(dz7/images/bg_case_f.png) center bottom no-repeat;position:relative;}
.case li .case_w{display:block;width:262px;height:145px;padding:20px;background:url(dz7/images/bg_case.png) no-repeat;position:absolute;bottom:14px;left:0px;}
.case li .case_w .fire{background:#000;opacity:0.5;filter:alpha(opacity=50);position:absolute;top:20px;left:20px;width:262px;height:148px;z-index:2;display:none; text-align:center; }
.case li .case_w  .x,.case li .case_w  .y{width:61px;height:61px;top:60px;position:absolute;z-index:3;display:none;}
.case li .case_w  .x{background:url(dz7/images/zoom-icon.png); left: 50px;}
.case li .case_w  .y{background:url(dz7/images/readmore-icon.png);right:50px;}
</style>
<script type="text/javascript" src="dz7/js/jq-1.7.2.min.js"></script>
<ul class="case">
[loop]
        <li>
                <div class="case_w">
                        <img alt="{title}" width="{picwidth}" height="{picheight}"  src="{pic}">
                        <div class="fire"></div>
                        <a href="{url}" class="x"></a>
                        <a href="{url}" class="y"></a>
                </div>
        </li>
[/loop]
</ul>
<script type="text/javascript">
jQuery.noConflict();
var jq=jQuery;
jq(function(){
        jq(".case li").hover(function(){
                jq('.case_w',this).stop().animate({"bottom":"30px"},400);       
                jq(".x",this).stop().css({'left':'50px'}).animate({'left':"80px"},400).show();
                jq(".y",this).stop().css({'right':'50px'}).animate({'right':"80px"},400).show();
                jq('.fire',this).show();
        },function(){
                jq('.case_w',this).stop().animate({"bottom":"14px"},400);
                jq('.fire, .x, .y',this).hide();
        });       
});
</script>
</div>
回复 0 1

使用道具 举报

发表于 2014-12-28 02:18:10 | 显示全部楼层
谢谢分享!
回复

使用道具 举报

发表于 2014-12-30 09:14:57 | 显示全部楼层
就啊俺奶奶呢
回复 0 1

使用道具 举报

发表于 2014-12-31 08:24:20 | 显示全部楼层
真心需要呀!
回复 0 1

使用道具 举报

发表于 2014-12-31 13:23:11 | 显示全部楼层
525919 发表于 2014-12-23 17:48
尊敬的站长,我一直学您发的教程,看您教程做了轮播图样式,可是轮播图超过了总区域的范围,怎么办?我把 ...

不好意思没有及时回答你的问题,把总区域设置之后,也要修改对应的图片尺寸!不明白的的话,到问答板块提问我会第一时间回复你    http://www.dz7.com.cn/discuzf-2-1.html
回复 0 1

使用道具 举报

发表于 2014-12-31 13:23:23 | 显示全部楼层
jinoem 发表于 2014-12-26 15:31
/* case */
.case{margin:0 auto;width:auto;}
.case li{float:left;display:inline;margin-right:22px ...

??
回复 0 1

使用道具 举报

发表于 2015-1-5 22:02:59 | 显示全部楼层

帅  对于我们这种新手太有帮助了
回复 0 1

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Discuz代码分析|Discuz目录结构|DZ起点网 ( 蜀ICP备13000518号-15 )

GMT+8, 2024-4-20 13:58 , Processed in 0.051056 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表