Javascript 为什么我的简单JQuery代码没有';不行?
我遵循了这里的所有说明:Javascript 为什么我的简单JQuery代码没有';不行?,javascript,jquery,css,templates,Javascript,Jquery,Css,Templates,我遵循了这里的所有说明: 首先,您有一个简单的语法错误 .imagedivholder { float:left; position:relative; margin:10px; width:230px; height:230px; } 试着学习使用。它将帮助您发现像这样的简单错误。如果您仍然有问题,请告诉我们。在上次]之后,您还有一个额外的。了解如何使用Web检查器。 <div class="awallpost">
首先,您有一个简单的语法错误
.imagedivholder {
float:left;
position:relative;
margin:10px;
width:230px;
height:230px;
}
试着学习使用。它将帮助您发现像这样的简单错误。如果您仍然有问题,请告诉我们。在上次
]之后,您还有一个额外的
。
了解如何使用Web检查器。
<div class="awallpost">
<div class="imagedivholder" rel="http://farm4.static.flickr.com/3458/3889274600_f381d28003.jpg" >
<!--<a href="document/show?id=4cde4c258aad69014a0000e1"><img src="http://s3.amazonaws.com/fabletest/4e0bndzxsaf3qul2" width="230" height="230"></a>-->
<div class="trans_caption">
<div style="padding:6px">
The Docks and The City: ...
</div>
</div>
</div>
</div>
<div class="awallpost">
<div class="imagedivholder" rel="http://farm4.static.flickr.com/3454/3814350374_d37f82124b.jpg" >
<!--<a href="document/show?id=4cde4e1c8aad69014a00011e"><img src="http://s3.amazonaws.com/fabletest/vbparxeymqgndc8l" width="230" height="230"></a>-->
<div class="trans_caption">
<div style="padding:6px">
Earth's paradise?
</div>
</div>
</div>
</div>
.imagedivholder {
float:left;
position:relative;
margin:10px;
width:230px;
height:230px;
}
$(function(){
$(".imagedivholder").each(function(e){
$(this).crossSlide({
speed:45, fade:1
},[
{ src: $(this).attr("rel"), dir:'up' },
{ src: $(this).attr("rel"), dir:'down' },
]);
});
});