gpt4 book ai didi

jquery - 框阴影效果不适用于幻灯片

转载 作者:行者123 更新时间:2023-11-28 13:25:33 24 4
gpt4 key购买 nike

我有一个非常简单的 slider ,我正在尝试在此链接 http://www.paulund.co.uk/creating-different-css3-box-shadows-effects 上实现 #5对于幻灯片中的所有图像。我运气不好!我根本无法显示任何内容。提前感谢您的帮助。

幻灯片CSS:

.blueberry { margin: 0 auto; padding-bottom:25px; width:auto;}

.blueberry .slides {
display: block;
position: relative;
overflow: hidden;
}

.blueberry .slides li {
position: absolute;
top: 0;
left: 0;
overflow: hidden;
}

.blueberry .slides li img {
display: block;
width: 100%;
max-width: none;
}

.blueberry .slides li.active { display: block; position: relative; }
.blueberry .crop li img { width: auto; }

.blueberry .pager {
height: 40px;
text-align: center;
}

.blueberry .pager li { display: inline-block; }
.blueberry .pager li a,
.blueberry .pager li a span {
display: block;
height: 4px;
width: 4px;
}

.blueberry .pager li a {
padding: 18px 8px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
-o-border-radius: 6px;
-ms-border-radius: 6px;
-khtml-border-radius: 6px;
border-radius: 6px;

}

.blueberry .pager li a span {
overflow: hidden;
background: #c0c0c0;
text-indent: -9999px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
-o-border-radius: 2px;
-ms-border-radius: 2px;
-khtml-border-radius: 2px;
border-radius: 2px;

}

.blueberry .pager li.active a span {
background: #404040;

}

.shadow:before, .shadow:after
{
z-index: -1;
position: absolute;
content: "";
bottom: 25px;
left: -25px;
width: 50%;
top: 80%;
max-width:400px;
background: #777;
-webkit-box-shadow: 0 35px 20px #777;
-moz-box-shadow: 0 35px 20px #777;
box-shadow: 0 35px 20px #777;
-webkit-transform: rotate(-8deg);
-moz-transform: rotate(-8deg);
-o-transform: rotate(-8deg);
-ms-transform: rotate(-8deg);
transform: rotate(-8deg);
}

.shadow:after {

-webkit-transform: rotate(8deg);
-moz-transform: rotate(8deg);
-o-transform: rotate(8deg);
-ms-transform: rotate(8deg);
transform: rotate(8deg);
right: 10px;
left: auto;
}

HTML:

<div class="blueberry">
<ul class="slides shadow">
<li><img src="images/avatar.jpg" /></li>
<li><img src="images/ironman.jpg" /></li>
<li><img src="images/tron.jpg" /></li>
<li><img src="images/greenhornet.jpg" /></li>
</ul>
</div>

最佳答案

试试 demo here

这里我修改了 box 类的 CSS

.box {
width:70%;
height:200px;
background:#FFF;
margin:40px auto;
background-image:url('http://unleashthefanboy.s3.amazonaws.com/wp-content/uploads/2012/05/MARK2.jpg');
background-color:#cccccc;
background-size:100%;
}

关于jquery - 框阴影效果不适用于幻灯片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14221244/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com