1
我在我的css中有一個photoshow
的類。他們是圖像。我希望它們在頁面加載時淡出並淡入。任何與wysihtml5
第一行工作正常。有任何想法嗎?爲什麼不是這個jQuery的工作? Image fadeIn和fadeOut
控制檯錯誤:
event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
小號
$(document).ready(function(){
$('.wysihtml5').each(function(i, elem) {
$(elem).wysihtml5();
});
$('.photoshow').fadeOut().fadeIn('slow');
})
這裏的HTML
<%= link_to 'Back', :back %> <br>
<%#= @photo.name %>
<div class="photoshow">
<%= image_tag @photo.image.url, width: '500', class: 'photoshow' %>
</div>
應該工作得很好 - > http://jsfiddle.net/adeneo/zD7t5/ – adeneo
有趣。我不知道這裏發生了什麼事。 :( –
打開您的控制檯(F12)並檢查錯誤? – adeneo