payme.png の背後に coffee.jpg が表示されないようにするにはどうすればよいですか? Webページを最初にロードしたときに得られる結果は両方の画像ですが、一度循環すると、coffee.jpgが背後に表示されなくなります。
これは相対的な test.html です
<div class="container">
<div id="featured">
<img src="these/payme.png" /> // has transparent background
<img src="these/coffee.jpg" /> // shows up behind payme.png
</div>
</div>
および orbit.css
.container {
position: absolute;
top: 50%;
left: 50%;
margin: -250px 0 0 -420px;
}
#featured {
width: 850px;
height: 425px;
background: rgba(0,0,0,0);
overflow: hidden;
}
#featured>img,
#featured>div,
#featured>a { display: none; }
div.orbit-wrapper {
width: 1px;
height: 1px;
position: relative;
}
div.orbit {
width: 1px;
height: 1px;
position: relative;
overflow: hidden
}
div.orbit>img {
position: absolute;
top: 0;
left: 0;
display: none;
}
div.orbit>a {
border: none;
position: absolute;
top: 0;
left: 0;
line-height: 0;
display: none;
}
.orbit>div {
position: absolute;
top: 0;
left: 0;
width: 850px;
height: 425px;
}