我为旅行和摄影制作了这个博客,这是我的主要爱好之一。 我有一个免费的模板,并且自己完成了所有必要的更改,当然要归功于它的作者。但是我有这个问题......
主页上有超过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”......
这是与滑块关联的代码。删除它不会有诀窍大声笑...
<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>
另外,我想在头版上制作较小的垂直图像,但我似乎也无法做到这一点......垂直图像太大了
答案 0 :(得分:1)
嗯,您使用的是Blogspot主题,此功能已集成到主题中。
您可以从主题设置中将其关闭。
OR
如果您只想通过CSS删除此功能,请将此代码粘贴到样式表的底部。
请记住这是一个HACK,因此您的滑块无法在其他地方使用。仅当您想通过CSS删除滑块功能并且无法从主题设置关闭自动滑块创建时,才使用此代码。
.bx-wrapper .bx-controls-direction a{display:none;}
ul.bxslider li{display:none !important;}
ul.bxslider li:first-child{display:block !important;}