我不明白为什么会这样,真的很奇怪。由于我是 Jquery 新手,我可能会遗漏一些东西。这是我的代码
<script type="text/javascript">
$(document).ready(function(){
$(".photos_container > a").mouseover(function() {
$(this).fadeTo("slow", 0.6);
}).mouseout(function(){
$(this).fadeTo("slow", 1);
});
$('.pagination a').on('click', function(e){
e.preventDefault();
var link = $(this).attr('href');
$('.tab-pane.active').html('Loading...');
$('.tab-pane.active').load(link+' .tab-pane.active > *');
});
});
</script>
HTML
<div class="photos_container tab-pane active" id="1">
<a href="javascript:void(0)" data-name="Chameleon Minds" data-photo-medium="http://localhost/site/wp-content/uploads/2013/04/Chameleon-medium.png" data-title="Art Projects for Kids - Status : Client work">
<img class="thumb_image" src="http://localhost/site/wp-content/uploads/2013/04/Final.png">
</a>
<div class="pagination">
<a class="page-numbers" href="">1</a>
<span class="page-numbers current">2</span>
</div>
</div>