525919
发表于 2014-12-23 17:48:38
admin 发表于 2014-12-23 14:54
尊敬的站长,我一直学您发的教程,看您教程做了轮播图样式,可是轮播图超过了总区域的范围,怎么办?我把轮播图的大小都调了,还是不一样。。帮帮忙麽?
念你
发表于 2014-12-25 19:02:23
好东西要不要都得顶。
liu1369126230
发表于 2014-12-25 22:13:52
:):):):):)
jinoem
发表于 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">
<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>
</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>
sblpp
发表于 2014-12-28 02:18:10
谢谢分享!
qq9980
发表于 2014-12-30 09:14:57
就啊俺奶奶呢
测试
发表于 2014-12-31 08:24:20
真心需要呀!
技术帮助
发表于 2014-12-31 13:23:11
525919 发表于 2014-12-23 17:48
尊敬的站长,我一直学您发的教程,看您教程做了轮播图样式,可是轮播图超过了总区域的范围,怎么办?我把 ...
不好意思没有及时回答你的问题,把总区域设置之后,也要修改对应的图片尺寸!不明白的的话,到问答板块提问我会第一时间回复你 http://www.dz7.com.cn/discuzf-2-1.html
技术帮助
发表于 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 ...
??
q2374819613
发表于 2015-1-5 22:02:59
帅对于我们这种新手太有帮助了
页:
1
2
3
4
[5]
6
7
8
9
10
11
12
13
14