谁能帮我解决这个问题?我正在努力让 pin 图像在翻转时出现在透明框的前面,但将线保持在框的后面。如果有人对如何解决这个问题有任何建议,我将不胜感激。
提前致谢。
- 麦克风
http://resources.29kdev.com/timeline/demo.html
这是HTML:
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<!-- Attach our CSS -->
<link rel="stylesheet" href="style.css">
<!-- Attach necessary JS -->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<title>Timeline</title>
</head>
<body>
<!-- =======================================
TIMELINE CONTENT
======================================= -->
<div id ="pagewrap">
<div id ="wrapper">
<div id="timeline">
<img src="images/timeline.png">
</div> <!--end timeline -->
<ul> <!--begin ul -->
<div id="pin01" class="handle">
<div class="handleicon"><img src="images/handle.png"></div>
<div class="handleinfo">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus euismod metus, nec mollis tellus porttitor ut. Nam id accumsan ante. Proin varius ultricies sem et tincidunt.</p>
</div>
</div>
<div id="pin02" class="handle">
<div class="handleicon"><img src="images/handle.png"></div>
<div class="handleinfo">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus euismod metus, nec mollis tellus porttitor ut. Nam id accumsan ante. Proin varius ultricies sem et tincidunt.</p>
</div>
</div>
<div id="pin03" class="handle">
<div class="handleicon"><img src="images/handle.png"></div>
<div class="handleinfo">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus euismod metus, nec mollis tellus porttitor ut. Nam id accumsan ante. Proin varius ultricies sem et tincidunt.</p>
</div>
</div>
<div id="pin04" class="handle">
<div class="handleicon"><img src="images/handle.png"></div>
<div class="handleinfo">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus euismod metus, nec mollis tellus porttitor ut. Nam id accumsan ante. Proin varius ultricies sem et tincidunt.</p> </div>
</div>
<div id="pin05" class="handle">
<div class="handlerighticon"><img src="images/handle.png"></div>
<div class="handleinfo handlerightinfo">
<h3>Lorem Ipsum</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed cursus euismod metus, nec mollis tellus porttitor ut. Nam id accumsan ante. Proin varius ultricies sem et tincidunt.</p>
</div>
</div>
</ul> <!--end ul -->
<div id="title">
<div id="lefttitle">
<h4>Our Company History</h4>
</div> <!--end lefttitle-->
<div id="righttitle">
<p class="title">Rollover an Event</p>
</div> <!--end righttitle-->
<div class="clear"></div>
</div><!--end title -->
<!--fadeToggle script -->
<script>
$('.handle').on('mouseover', function(){
$(this).css('z-index', '200000000');
});
$('.handle').on('mouseout', function(){
$(this).css('z-index', '100000000');
});
$('.handleicon').on('mouseover', function(){
$(this).css('z-index', '-200000000');
});
$('.handleicon').on('mouseout', function(){
$(this).css('z-index', '-100000000');
});
$('.handlerighticon').on('mouseover', function(){
$(this).css('z-index', '-200000000');
});
$('.handlerighticon').on('mouseout', function(){
$(this).css('z-index', '-100000000');
});
$(".handle").hover(
function() {
$(this).addClass("topdiv");
$(this).children(".handleinfo").fadeIn("fast");
},
function() {
$(this).children(".handleinfo").fadeOut("fast", function() {$(this).removeClass("topdiv");});
}
);
$(".handleright").hover(
function() {
$(this).addClass("topdiv");
$(this).children(".handlerightinfo").fadeIn("fast");
},
function() {
$(this).children(".handlerightinfo").fadeOut("fast", function() {$(this).removeClass("topdiv");});
}
);
$(document).ready(function() {
$('#backgroundfade').fadeOut(2000, function(){$('#maincontent').fadeTo(1000,1);});
});
</script>
</body>