- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用图像 slider ,一切正常,除了我编辑代码以显示额外图像(图像 ID 6)。所有动画都有效,我可以导航到第 6 张幻灯片,但图像是黑色的。当我检查元素时,它显示图像路径是正确的。
我还在带有图像占位符的 fiddle 中添加了代码,第 6 张幻灯片也显示了一个黑框。
知道我做错了什么吗?我认为这是 CSS 中的内容,但我找不到它是什么。
fiddle :http://jsfiddle.net/98LLpmc3/1/
我的CSS代码:
@font-face {
font-family: 'WebSymbolsRegular';
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot');
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.woff') format('woff'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.ttf') format('truetype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont#WebSymbolsRegular') format('svg');
}
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400,700);
* {
margin: 0;
padding: 0;
}
body {
padding: 1px;
}
h1 { color: white }
#slideshow-wrap {
display: block;
height: 400px;
min-width: 260px;
max-width: 988px;
margin: auto;
/* border: 12px rgba(255,255,240,1) solid; */
-webkit-box-shadow: 0px 0px 5px rgba(0,0,0,.8);
-moz-box-shadow: 0px 0px 5px rgba(0,0,0,.8);
box-shadow: 0px 0px 5px rgba(0,0,0,.8);
margin-top: 20px;
position: relative;
margin-bottom: 20px;
}
#slideshow-inner {
width: 100%;
height: 100%;
background-color: rgb(0,0,0);
overflow: hidden;
position: relative;
}
#slideshow-inner>ul {
list-style: none;
height: 100%;
width: 500%;
overflow: hidden;
position: relative;
left: 0px;
-webkit-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
-moz-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
-o-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
}
#slideshow-inner>ul>li {
width: 20%;
height: 400px;
float: left;
position: relative;
}
#slideshow-inner>ul>li>img {
margin: auto;
height: 100%;
}
#slideshow-wrap input[type=radio] {
position: absolute;
left: 50%;
bottom: 15px;
z-index: 100;
visibility: hidden;
}
#slideshow-wrap label:not(.arrows):not(.show-description-label) {
position: absolute;
left: 50%;
bottom: -45px;
z-index: 100;
width: 12px;
height: 12px;
background-color: rgba(200,200,200,1);
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
cursor: pointer;
-webkit-box-shadow: 0px 0px 3px rgba(0,0,0,.8);
-moz-box-shadow: 0px 0px 3px rgba(0,0,0,.8);
box-shadow: 0px 0px 3px rgba(0,0,0,.8);
-webkit-transition: background-color .2s;
-moz-transition: background-color .2s;
-o-transition: background-color .2s;
transition: background-color .2s;
}
#slideshow-wrap label:not(.arrows):active { bottom: -46px }
#slideshow-wrap input[type=radio]#button-1:checked~label[for=button-1] { background-color: rgba(100,100,100,1) }
#slideshow-wrap input[type=radio]#button-2:checked~label[for=button-2] { background-color: rgba(100,100,100,1) }
#slideshow-wrap input[type=radio]#button-3:checked~label[for=button-3] { background-color: rgba(100,100,100,1) }
#slideshow-wrap input[type=radio]#button-4:checked~label[for=button-4] { background-color: rgba(100,100,100,1) }
#slideshow-wrap input[type=radio]#button-5:checked~label[for=button-5] { background-color: rgba(100,100,100,1) }
#slideshow-wrap input[type=radio]#button-6:checked~label[for=button-6] { background-color: rgba(100,100,100,1) }
#slideshow-wrap label[for=button-1] { margin-left: -36px }
#slideshow-wrap label[for=button-2] { margin-left: -18px }
#slideshow-wrap label[for=button-4] { margin-left: 18px }
#slideshow-wrap label[for=button-5] { margin-left: 36px }
#slideshow-wrap label[for=button-6] { margin-left: 54px }
#slideshow-wrap input[type=radio]#button-1:checked~#slideshow-inner>ul { left: 0 }
#slideshow-wrap input[type=radio]#button-2:checked~#slideshow-inner>ul { left: -100% }
#slideshow-wrap input[type=radio]#button-3:checked~#slideshow-inner>ul { left: -200% }
#slideshow-wrap input[type=radio]#button-4:checked~#slideshow-inner>ul { left: -300% }
#slideshow-wrap input[type=radio]#button-5:checked~#slideshow-inner>ul { left: -400% }
#slideshow-wrap input[type=radio]#button-6:checked~#slideshow-inner>ul { left: -500% }
label.arrows {
font-family: 'WebSymbolsRegular';
font-size: 25px;
color: rgb(255,255,240);
position: absolute;
top: 50%;
margin-top: -25px;
display: none;
opacity: 0.7;
cursor: pointer;
z-index: 1000;
background-color: transparent;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
text-shadow: 0px 0px 3px rgba(0,0,0,.8);
}
label.arrows:hover { opacity: 1 }
label.arrows:active { margin-top: -23px }
input[type=radio]#button-1:checked~.arrows#arrow-2, input[type=radio]#button-2:checked~.arrows#arrow-3, input[type=radio]#button-3:checked~.arrows#arrow-4, input[type=radio]#button-4:checked~.arrows#arrow-5,
input[type=radio]#button-5:checked~.arrows#arrow-6 {
right: -55px;
display: block;
}
input[type=radio]#button-2:checked~.arrows#arrow-1, input[type=radio]#button-3:checked~.arrows#arrow-2, input[type=radio]#button-4:checked~.arrows#arrow-3, input[type=radio]#button-5:checked~.arrows#arrow-4,
input[type=radio]#button-6:checked~.arrows#arrow-5 {
left: -55px;
display: block;
-webkit-transform: scaleX(-1);
-moz-transform: scaleX(-1);
-ms-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
}
input[type=radio]#button-2:checked~.arrows#arrow-1 { left: -19px }
input[type=radio]#button-3:checked~.arrows#arrow-2 { left: -37px }
input[type=radio]#button-4:checked~.arrows#arrow-3 { left: -73px }
input[type=radio]#button-5:checked~.arrows#arrow-4 { left: -145px }
input[type=radio]#button-6:checked~.arrows#arrow-5 { left: -289px }
.description {
position: absolute;
top: 0;
left: 0;
width: 260px;
font-family: 'Yanone Kaffeesatz';
z-index: 1000;
}
.description input { visibility: hidden }
.description label {
font-family: 'WebSymbolsRegular';
background-color: rgba(255,255,240,1);
position: relative;
left: -17px;
top: 00px;
width: 40px;
height: 27px;
display: inline-block;
text-align: center;
padding-top: 7px;
border-bottom-right-radius: 15px;
cursor: pointer;
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
z-index: 5;
color: rgb(20,20,20);
}
#slideshow-inner>ul>li:hover .description label { opacity: 1 }
.description input[type=checkbox]:checked~label { opacity: 1 }
.description .description-text {
background-color: rgba(255,255,230,.5);
padding-left: 45px;
padding-top: 25px;
padding-right: 15px;
padding-bottom: 15px;
position: relative;
top: -35px;
z-index: 4;
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
color: rgb(20,20,20);
}
.description input[type=checkbox]:checked~.description-text { opacity: 1 }
我的 HTML:
<div id="slideshow-wrap">
<input type="radio" id="button-1" name="controls" checked="checked"/>
<label for="button-1"></label>
<input type="radio" id="button-2" name="controls"/>
<label for="button-2"></label>
<input type="radio" id="button-3" name="controls"/>
<label for="button-3"></label>
<input type="radio" id="button-4" name="controls"/>
<label for="button-4"></label>
<input type="radio" id="button-5" name="controls"/>
<label for="button-5"></label>
<input type="radio" id="button-6" name="controls"/>
<label for="button-6"></label>
<label for="button-1" class="arrows" id="arrow-1">></label>
<label for="button-2" class="arrows" id="arrow-2">></label>
<label for="button-3" class="arrows" id="arrow-3">></label>
<label for="button-4" class="arrows" id="arrow-4">></label>
<label for="button-5" class="arrows" id="arrow-5">></label>
<label for="button-6" class="arrows" id="arrow-6">></label>
<div id="slideshow-inner">
<ul>
<li id="slide1">
<img src="images/slides/img1a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-1"/>
<label for="show-description-1" class="show-description-label">I</label>
<div class="description-text">
<h2>Flower power</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide2">
<img src="images/slides/img2a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-2"/>
<label for="show-description-2" class="show-description-label">I</label>
<div class="description-text">
<h2>Golden sunset</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide3">
<img src="images/slides/img3a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-3"/>
<label for="show-description-3" class="show-description-label">I</label>
<div class="description-text">
<h2>Flower power again</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide4">
<img src="images/slides/img4a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-4"/>
<label for="show-description-4" class="show-description-label">I</label>
<div class="description-text">
<h2>Stormy coast</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide5">
<img src="images/slides/img5a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide6">
<img src="images/slides/img6a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-6"/>
<label for="show-description-6" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide7">
<img src="images/slides/img7a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide8">
<img src="images/slides/img8a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide9">
<img src="images/slides/img9a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide10">
<img src="images/slides/img10a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide11">
<img src="images/slides/img11a.jpg" />
<div class="description">
<input type="checkbox" id="show-description-5"/>
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
</ul>
</div>
</div>
最佳答案
好的,问题出在 CSS 计算上。我猜最初有 5 张幻灯片,基于此你将 ul
宽度设置为 500%,将 li
宽度设置为 20%。但是由于现在您添加了另一个 li,因此 li 的总宽度和单个宽度必须更改,即 100/6 。同样,您应该修改 margin-left 属性。
我希望你已经得到了答案。
这是演示:http://jsfiddle.net/lotusgodkk/98LLpmc3/11/
HTML:
<div id="slideshow-wrap">
<input type="radio" id="button-1" name="controls" checked="checked" />
<label for="button-1"></label>
<input type="radio" id="button-2" name="controls" />
<label for="button-2"></label>
<input type="radio" id="button-3" name="controls" />
<label for="button-3"></label>
<input type="radio" id="button-4" name="controls" />
<label for="button-4"></label>
<input type="radio" id="button-5" name="controls" />
<label for="button-5"></label>
<input type="radio" id="button-6" name="controls" />
<label for="button-6"></label>
<label for="button-1" class="arrows" id="arrow-1">></label>
<label for="button-2" class="arrows" id="arrow-2">></label>
<label for="button-3" class="arrows" id="arrow-3">></label>
<label for="button-4" class="arrows" id="arrow-4">></label>
<label for="button-5" class="arrows" id="arrow-5">></label>
<label for="button-6" class="arrows" id="arrow-6">></label>
<div id="slideshow-inner">
<ul>
<li id="slide1">
<img src="http://www.lorempixel.com/988/400/sports/1/" />
<div class="description">
<input type="checkbox" id="show-description-1" />
<label for="show-description-1" class="show-description-label">I</label>
<div class="description-text">
<h2>Flower power</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide2">
<img src="http://www.lorempixel.com/988/400/sports/2/" />
<div class="description">
<input type="checkbox" id="show-description-2" />
<label for="show-description-2" class="show-description-label">I</label>
<div class="description-text">
<h2>Golden sunset</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide3">
<img src="http://www.lorempixel.com/988/400/sports/3/" />
<div class="description">
<input type="checkbox" id="show-description-3" />
<label for="show-description-3" class="show-description-label">I</label>
<div class="description-text">
<h2>Flower power again</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide4">
<img src="http://www.lorempixel.com/988/400/sports/4/" />
<div class="description">
<input type="checkbox" id="show-description-4" />
<label for="show-description-4" class="show-description-label">I</label>
<div class="description-text">
<h2>Stormy coast</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide5">
<img src="http://www.lorempixel.com/988/400/sports/5/" />
<div class="description">
<input type="checkbox" id="show-description-5" />
<label for="show-description-5" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
<li id="slide6">
<img src="http://www.lorempixel.com/988/400/sports/6/" />
<div class="description">
<input type="checkbox" id="show-description-6" />
<label for="show-description-6" class="show-description-label">I</label>
<div class="description-text">
<h2>Splash!</h2>
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut</p>
</div>
</div>
</li>
</ul>
</div>
</div>
更新的 CSS:
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:400, 700);
@font-face {
font-family:'WebSymbolsRegular';
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot');
src: url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.woff') format('woff'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont.ttf') format('truetype'), url('http://html5css3demos.bplaced.net/css3-slider-v3/websymbols-regular-webfont#WebSymbolsRegular') format('svg');
}
* {
margin: 0;
padding: 0;
}
body {
padding: 1px;
}
h1 {
color: white
}
#slideshow-wrap {
display: block;
height: 400px;
min-width: 260px;
max-width: 988px;
margin: auto;
/* border: 12px rgba(255,255,240,1) solid; */
-webkit-box-shadow: 0px 0px 5px rgba(0, 0, 0, .8);
-moz-box-shadow: 0px 0px 5px rgba(0, 0, 0, .8);
box-shadow: 0px 0px 5px rgba(0, 0, 0, .8);
margin-top: 20px;
position: relative;
margin-bottom: 20px;
}
#slideshow-inner {
width: 100%;
height: 100%;
background-color: rgb(0, 0, 0);
overflow: hidden;
position: relative;
}
#slideshow-inner>ul {
list-style: none;
height: 100%;
width: 600%;
overflow: hidden;
position: relative;
left: 0px;
-webkit-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
-moz-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
-o-transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
transition: left .8s cubic-bezier(0.77, 0, 0.175, 1);
}
#slideshow-inner>ul>li {
width: 16.66%;
height: 400px;
float: left;
position: relative;
}
#slideshow-inner>ul>li>img {
margin: auto;
height: 100%;
}
#slideshow-wrap input[type=radio] {
position: absolute;
left: 50%;
bottom: 15px;
z-index: 100;
visibility: hidden;
}
#slideshow-wrap label:not(.arrows):not(.show-description-label) {
position: absolute;
left: 50%;
bottom: -45px;
z-index: 100;
width: 12px;
height: 12px;
background-color: rgba(200, 200, 200, 1);
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
cursor: pointer;
-webkit-box-shadow: 0px 0px 3px rgba(0, 0, 0, .8);
-moz-box-shadow: 0px 0px 3px rgba(0, 0, 0, .8);
box-shadow: 0px 0px 3px rgba(0, 0, 0, .8);
-webkit-transition: background-color .2s;
-moz-transition: background-color .2s;
-o-transition: background-color .2s;
transition: background-color .2s;
}
#slideshow-wrap label:not(.arrows):active {
bottom: -46px
}
#slideshow-wrap input[type=radio]#button-1:checked~label[for=button-1] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap input[type=radio]#button-2:checked~label[for=button-2] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap input[type=radio]#button-3:checked~label[for=button-3] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap input[type=radio]#button-4:checked~label[for=button-4] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap input[type=radio]#button-5:checked~label[for=button-5] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap input[type=radio]#button-6:checked~label[for=button-6] {
background-color: rgba(100, 100, 100, 1)
}
#slideshow-wrap label[for=button-1] {
margin-left: -36px
}
#slideshow-wrap label[for=button-2] {
margin-left: -18px
}
#slideshow-wrap label[for=button-4] {
margin-left: 18px
}
#slideshow-wrap label[for=button-5] {
margin-left: 36px
}
#slideshow-wrap label[for=button-6] {
margin-left: 54px
}
#slideshow-wrap input[type=radio]#button-1:checked~#slideshow-inner>ul {
left: 0
}
#slideshow-wrap input[type=radio]#button-2:checked~#slideshow-inner>ul {
left: -100%
}
#slideshow-wrap input[type=radio]#button-3:checked~#slideshow-inner>ul {
left: -200%
}
#slideshow-wrap input[type=radio]#button-4:checked~#slideshow-inner>ul {
left: -300%
}
#slideshow-wrap input[type=radio]#button-5:checked~#slideshow-inner>ul {
left: -400%
}
#slideshow-wrap input[type=radio]#button-6:checked~#slideshow-inner>ul {
left: -500%
}
label.arrows {
font-family:'WebSymbolsRegular';
font-size: 25px;
color: rgb(255, 255, 240);
position: absolute;
top: 50%;
margin-top: -25px;
display: none;
opacity: 0.7;
cursor: pointer;
z-index: 1000;
background-color: transparent;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
text-shadow: 0px 0px 3px rgba(0, 0, 0, .8);
}
label.arrows:hover {
opacity: 1
}
label.arrows:active {
margin-top: -23px
}
input[type=radio]#button-1:checked~.arrows#arrow-2, input[type=radio]#button-2:checked~.arrows#arrow-3, input[type=radio]#button-3:checked~.arrows#arrow-4, input[type=radio]#button-4:checked~.arrows#arrow-5, input[type=radio]#button-5:checked~.arrows#arrow-6 {
right: -55px;
display: block;
}
input[type=radio]#button-2:checked~.arrows#arrow-1, input[type=radio]#button-3:checked~.arrows#arrow-2, input[type=radio]#button-4:checked~.arrows#arrow-3, input[type=radio]#button-5:checked~.arrows#arrow-4, input[type=radio]#button-6:checked~.arrows#arrow-5 {
left: -55px;
display: block;
-webkit-transform: scaleX(-1);
-moz-transform: scaleX(-1);
-ms-transform: scaleX(-1);
-o-transform: scaleX(-1);
transform: scaleX(-1);
}
input[type=radio]#button-2:checked~.arrows#arrow-1 {
left: -19px
}
input[type=radio]#button-3:checked~.arrows#arrow-2 {
left: -37px
}
input[type=radio]#button-4:checked~.arrows#arrow-3 {
left: -55px
}
input[type=radio]#button-5:checked~.arrows#arrow-4 {
left: -73px
}
input[type=radio]#button-6:checked~.arrows#arrow-5 {
left: -91px
}
.description {
position: absolute;
top: 0;
left: 0;
width: 260px;
font-family:'Yanone Kaffeesatz';
z-index: 1000;
}
.description input {
visibility: hidden
}
.description label {
font-family:'WebSymbolsRegular';
background-color: rgba(255, 255, 240, 1);
position: relative;
left: -17px;
top: 00px;
width: 40px;
height: 27px;
display: inline-block;
text-align: center;
padding-top: 7px;
border-bottom-right-radius: 15px;
cursor: pointer;
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
z-index: 5;
color: rgb(20, 20, 20);
}
#slideshow-inner>ul>li:hover .description label {
opacity: 1
}
.description input[type=checkbox]:checked~label {
opacity: 1
}
.description .description-text {
background-color: rgba(255, 255, 230, .5);
padding-left: 45px;
padding-top: 25px;
padding-right: 15px;
padding-bottom: 15px;
position: relative;
top: -35px;
z-index: 4;
opacity: 0;
-webkit-transition: opacity .2s;
-moz-transition: opacity .2s;
-o-transition: opacity .2s;
transition: opacity .2s;
color: rgb(20, 20, 20);
}
.description input[type=checkbox]:checked~.description-text {
opacity: 1
}
关于html - CSS3 slider ,最后一张图片未显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26584269/
我想使用 Angular.js 转换从服务器获取的图像数据(用于 ionic 框架),我使用了这段代码: $http.post(link, { token: token,
我正在为我的应用制作一个登陆页面。如果它们在 iOS 设备上,我希望它只显示“App Store”图标,但在 Android 上隐藏它。如果它们在 Android 设备上,则只有“Play Store
如何在同一页面上多次显示同一张图片? function xdf(){ for (i=0;ihello world'); } } 此代码显示“hello world”10 次。我想要同样的东西,
您好,我有一个 1px 的 png 文件,我试图将其设置为两个水平相邻的 div 的背景图像。html 和 css 如下:- hi hello css是这样的 div { width: 50%
我的 PHP 项目安装了 Prestashop 1.4.9.0。当我添加一个新产品时,我上传了一个PNG格式的图片,但是当它在客户端显示时,图片是JPG格式的。 如何保留图片扩展名? 最佳答案 在后台
我用 http://www.regexper.com查看一个象形表示正则表达式很多。我想要一种理想的方法: 向站点发送正则表达式 打开显示该表达式的站点 例如,让我们使用正则表达式:"\\s*foo[
我不知道为什么在 MAC OS X (Mail 6.2) 的邮件客户端中图像显示如下: 和其他邮件客户端,如 gmail、outlook 或 private,图像是正确的,看起来像这样: PHP邮件程
我正在使用此处找到的示例。 Mozilla developers 我对这个例子很感兴趣。 function upload(postUrl, fieldName, filePath) { var f
我不知道为什么在 MAC OS X (Mail 6.2) 的邮件客户端中图像显示如下: 和其他邮件客户端,如 gmail、outlook 或 private,图像是正确的,看起来像这样: PHP邮件程
我的问题是如何根据用户在javafx中选择的复选框和/或单选按钮生成带有汽车图片设置的按钮? 我正在用汽车图片模拟汽车经销商网站。用户应该能够通过单击复选框和/或单选按钮选择来过滤显示的图片。 我首先
我正在开发Java客户端,它应该支持多种语言。为了翻译文本,我使用 Java ResourceBoundle,它工作正常。 现在问题出在图像上。客户端应加载大约 50 张图像,这些图像是棋盘游戏的特定
我对 jQuery 还很陌生,但我正在寻找一个简单的脚本,通过淡入和淡出的方式在标题中循环 3 或 4 个背景图像。它们是透明的 png,因此我尝试过的许多 slider 都不起作用。 有什么想法吗?
我有一个 HTML 文档,其中包含本地文件的图像,例如: ios - 物理主体大于它分配给的纹理(图片)
我的 Sprite “physicsBody ”属性之一出现问题。 我已经放置了physicsBody节点“barn ”,直接位于 non-physicsBody 之上节点“mound”没有任何问题。
我想剪切图片的特定部分并用它来将剪切的图像与存储在 HDD 中的另一个图像进行比较。问题是我不知道如何获取源图像的特定部分。我知道要裁剪的图像的位置 (X,Y)。 最佳答案 这将加载原始版本并创建
如何使用裁剪实用程序在 javascript 中实现图像 uploader 。你如何通过 AJAX 提交图像文件?解决方案是否跨域兼容? 最佳答案 要实现具有裁剪功能的图片上传小部件,您必须: 将图像
public void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityRes
我想在我的 android 应用程序中显示一个国家的图片。国家必须按地区划分。因此,当用户单击特定区域时,应打开特定屏幕。区域也应该用线分隔,以便用户可以看到区域的开始/结束位置。 这是一个国家的例子
首先我想对这个问题表示歉意,因为我知道已经有很多人问过这个问题了。但我搜索的所有答案都没有解决我的问题。所以希望您考虑这个问题并帮助我解决这个问题。 所以基本上我正在尝试上传图像文件,当我提交它时,会
我几乎有了想要的数据...但需要帮助过滤它。 (图在底部) 下面的查询返回状态为 Member-id5 的所有记录,但我需要对其进行过滤。例如:如果我对等做了一个简单的查询。 (exp_channel
我是一名优秀的程序员,十分优秀!