gpt4 book ai didi

javascript - 将 Pikachoose 设置为仅显示缩略图

转载 作者:行者123 更新时间:2023-11-28 02:37:04 24 4
gpt4 key购买 nike

我要修改pikachoose仅显示缩略图。我已经稍微修改了代码,这就是我所拥有的:

/image/deQdG.png

这是我在base.css中修改的内容

/* Style the thumbnails */
.pika-thumbs {
padding: 0 16px;
height: 75px;
}

.pika-thumbs li {
width: 144px;
height: 74px;
margin: 10px 0 0 17px;
padding: 0;
overflow: hidden;
float: left;
list-style-type: none;
padding: 3px;
margin: 0 5px;
background: #fafafa;
border: 1px solid #e5e5e5;
cursor: pointer;
}

.pika-thumbs li .clip {
position: relative;
height: 100%;
text-align: center;
vertical-align: middle;
overflow: hidden;
}

/*for the tool tips*/
.pika-tooltip {
font-size: 12px;
position: absolute;
color: white;
padding: 3px;
background-color: rgba(0,0,0,0.7);
border: 3px solid black;
}

.pika-counter {
position: absolute;
bottom: 45px;
left: 15px;
color: white;
background: rgba(0,0,0,0.7);
font-size: 11px;
padding: 3px;
-moz-border-radius: 5px;
border-radius: 5px;
}

/* If using user thumbnails there's a pause while the new large image loads. This is the loader for that */
.pika-loader {
background: url(loading.gif) 3px 3px no-repeat #000;
background-color: rgba(0,0,0,0.9);
color: white;
width: 60px;
font-size: 11px;
padding: 5px 3px;
text-align: right;
position: absolute;
top: 15px;
right: 15px;
}

我必须在jquery.pikachoose.js中修改什么来做到这一点?

我正在处理的网站是 http://brassds.com/

最佳答案

假设您指的是http://brassds.com/servicios.htmlPikachoose 的文档状态:

PikaChoose will create thumbnails for you, but if you want to use your own it’s easy. You set the src for your images to your thumbnail image. Then you’ll add a ref attribute (not rel!) with the full size image like the example below. PikaChoose will pull in the full size image automatically.

<img src="thumbnail.jpg" ref="fullsize.jpg" >

进一步假设 Servicios-pequena1.jpg 指向缩略图,而 Servicos-1.jpg 是全尺寸图像,您应该能够修改源代码看起来像这样:

<ul id="pikame" class="jcarousel-skin-pika">
<li><a href="#"><img src="images/trabajos/Servicios-pequena1.jpg" ref="images/trabajos/Servicos-1.jpg" alt=""/></a><span></span></li>
<li><a href="#"><img src="images/trabajos/Servicios-pequena2.jpg" ref="images/trabajos/Servicos-2.jpg" alt=""/></a><span></span></li>
<li><a href="#"><img src="images/trabajos/Servicios-pequena3.jpg" ref="images/trabajos/Servicos-3.jpg" alt=""/></a><span></span></li>
...
</ul>

Pikachoose应该为您设置缩略图。

关于javascript - 将 Pikachoose 设置为仅显示缩略图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13323217/

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