gpt4 book ai didi

html - 显示的图像作为画廊,但不想

转载 作者:太空宇宙 更新时间:2023-11-04 09:03:14 25 4
gpt4 key购买 nike

我创建这个博客是为了旅行和摄影,这是我的主要爱好之一。我得到了一个免费模板,并自行进行了所有必要的更改,当然要归功于它的作者。但是我有这个问题......

主页上的帖子,如果有超过 1 张图片,将显示为幻灯片画廊,我不希望这样,因为当照片是垂直的时它会弄乱布局。

如您所见:http://jcruz-foto.blogspot.pt/search?updated-max=2016-10-29T18%3A30%3A00%2B01%3A00&max-results=7

发布第 6 条,上面写着“Campeonato Regional MX Ribatejo 2016”...

这是与 slider 关联的代码。删除它不会奏效哈哈...

<style type='text/css'>
/**
* BxSlider v4.1.2 - Fully loaded, responsive content slider
* http://bxslider.com
*
* Written by: Steven Wanderski, 2014
* http://stevenwanderski.com
* (while drinking Belgian ales and listening to jazz)
*
* CEO and founder of bxCreative, LTD
* http://bxcreative.com
*/


/** RESET AND LAYOUT
===================================*/

.bx-wrapper {
position: relative;
margin: 0 auto 60px;
padding: 0;
*zoom: 1;
margin-bottom:15px;
}

.bx-wrapper img {
max-width: 100%;

}

/** THEME
===================================*/

.bx-wrapper .bx-viewport {
background: #fff;
text-align:center;
/*fix other elements on the page moving (on Chrome)*/
-webkit-transform: translatez(0);
-moz-transform: translatez(0);
-ms-transform: translatez(0);
-o-transform: translatez(0);
transform: translatez(0);
}

.bx-wrapper .bx-pager,
.bx-wrapper .bx-controls-auto {
position: absolute;
bottom: -30px;
width: 100%;
}

/* LOADER */

.bx-wrapper .bx-loading {
min-height: 50px;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 2000;
}

/* PAGER */

.bx-wrapper .bx-pager {
text-align: center;
font-size: .85em;
font-family: Arial;
font-weight: bold;
color: #666;
padding-top: 20px;
}

.bx-wrapper .bx-pager .bx-pager-item,
.bx-wrapper .bx-controls-auto .bx-controls-auto-item {
display: inline-block;
*zoom: 1;
*display: inline;
}

.bx-wrapper .bx-pager.bx-default-pager a {
background: #666;
text-indent: -9999px;
display: block;
width: 10px;
height: 10px;
margin: 0 5px;
outline: 0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover,
.bx-wrapper .bx-pager.bx-default-pager a.active {
background: #000;
}

/* DIRECTION CONTROLS (NEXT / PREV) */

.bx-wrapper .bx-prev {
left: 20px;
background: url(http://1.bp.blogspot.com/-WCgfaNs6MAU/VBnoMBFzakI/AAAAAAAABxw/oqXkrdC99Kw/s1600/slider-arrows.png) no-repeat 0 0;
}

.bx-wrapper .bx-next {
right: 20px;
background: url(http://1.bp.blogspot.com/-WCgfaNs6MAU/VBnoMBFzakI/AAAAAAAABxw/oqXkrdC99Kw/s1600/slider-arrows.png) no-repeat -30px 0;
}

/*.bx-controls-direction a {
opacity: 0;
transition: opacity .25s ease-in-out;
-moz-transition: opacity .25s ease-in-out;
-webkit-transition: opacity .25s ease-in-out;
}

.bx-wrapper:hover .bx-controls-direction a {
opacity: 1;
}*/

.bx-wrapper .bx-next:hover, .bx-wrapper .bx-prev:hover {
opacity:.7 !important;
}

.bx-wrapper .bx-controls-direction a {
position: absolute;
top: 50%;
margin-top: -15px;
outline: 0;
width: 30px;
height: 30px;
text-indent: -9999px;
z-index: 9999;
}

.bx-wrapper .bx-controls-direction a.disabled {
display: none;
}

/* AUTO CONTROLS (START / STOP) */

.bx-wrapper .bx-controls-auto {
text-align: center;
}

.bx-wrapper .bx-controls-auto .bx-start {
display: block;
text-indent: -9999px;
width: 10px;
height: 11px;
outline: 0;
background: url(images/controls.png) -86px -11px no-repeat;
margin: 0 3px;
}

.bx-wrapper .bx-controls-auto .bx-start:hover,
.bx-wrapper .bx-controls-auto .bx-start.active {
background-position: -86px 0;
}

.bx-wrapper .bx-controls-auto .bx-stop {
display: block;
text-indent: -9999px;
width: 9px;
height: 11px;
outline: 0;
background: url(images/controls.png) -86px -44px no-repeat;
margin: 0 3px;
}

.bx-wrapper .bx-controls-auto .bx-stop:hover,
.bx-wrapper .bx-controls-auto .bx-stop.active {
background-position: -86px -33px;
}

/* PAGER WITH AUTO-CONTROLS HYBRID LAYOUT */

.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-pager {
text-align: left;
width: 80%;
}

.bx-wrapper .bx-controls.bx-has-controls-auto.bx-has-pager .bx-controls-auto {
right: 0;
width: 35px;
}

/* IMAGE CAPTIONS */

.bx-wrapper .bx-caption {
position: absolute;
bottom: 6px;
left: 0;
background: rgba(0, 0, 0, 0.6);
width: 100%;
padding:20px;
}

.bx-wrapper .bx-caption span {
color: #fff;
display: block;
font-size: 16px;
}

</style>

此外,我想在首页上制作较小的垂直图像,但我似乎做不到...垂直图像太大了

最佳答案

好吧,您正在使用 Blogspot 主题,并且此功能已集成到主题中。

您可以从主题设置中将其关闭。

如果您只想通过 CSS 摆脱此功能,请将此代码粘贴到样式表的底部。

请记住,这是一个 HACK,因此您的 slider 将无法在其他任何地方使用。仅当您只想通过 CSS 摆脱 slider 功能并且无法从主题设置中关闭自动 slider 创建时才使用此代码。

.bx-wrapper .bx-controls-direction a{display:none;}
ul.bxslider li{display:none !important;}
ul.bxslider li:first-child{display:block !important;}

关于html - 显示的图像作为画廊,但不想,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42617495/

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