應該是bug, dowload最新版本即可解決
Should be a bug
Please download the latest version
jQuery Cycle Plugin
http://jquery.malsup.com/cycle/download.html[……]
應該是bug, dowload最新版本即可解決
Should be a bug
Please download the latest version
jQuery Cycle Plugin
http://jquery.malsup.com/cycle/download.html[……]
// 設定一個CSS Style用法
$(“.test > div”).css(“display”,”block”);
// 設定一組CSS Style用法
$(“.v_b_img > div”).css({
‘opacity’: 0,
‘top’: ‘100%’,
});[……]
$(‘.v_b_img’).mouseover(function(e){
$(this).children(‘div’).stop().animate({
‘opacity’: 1,
‘top’: 0
},{
duration:400,
easing:’easeOutQuint’,
complete : function(){}
});
});
jQuery Animate Easing 速查表
http://easings.net/zh-tw[……]
[……]
height的100%即為父層高度的100%,
但div在body之下仍然沒有辦法達到100%,
主要原因是HTML所有物件都會包在body之中,
大部份人都知道都會在CSS開頭初始body,如下:
body{
margin:0;
padding: 0;
width:100%;
height:100%;
}
但html常常都會忽略,body外面還有一層html,html一樣需要被初始,如下 :
html, body{
margin:0;
padding: 0;
width:100%;
height:100%;
}
如此,初始了最外層的html & body為100%,裡面的物件才有可能被CSS設置到完全的100%[……]
<script> $(document).ready(function(e) { $(".clear_btn").click(function(e){ $('#edit_member')[0].reset(); }); }); </script>
[……]
有時候我們需要用a標籤去綁定一些Javascript or JQuery事件,不是真的要做為連結之用,但是a標籤又必需設定 href , 這時大部份人就會在href加#號,但其實加#號仍然是連結,等同換了另一頁,網址末端也會加上#號(如:http://www.aaa.com#),這並不是最理想的狀況,我們不希望它做任何動作,以下寫法a標籤緊會執行javascript的事件,除此之外不會有其他動作。我們也可以比較以下兩種寫法的差異。
<!-- A標籤還是有動作 --> <a href="#" onclick="alert('hello')">沒有作用</a> <!-- A標籤不會有任何動作 --> <a href="javascript:void(0);" onclick="alert('hello')">沒有作用</a>
html:
<a href="#">沒有作用</a>
jQuery
/** * VECTOR COOL * https://vector.cool */ $(document).ready(function(e) { $('a').click(function(e){ e.preventDefault(); }); });
[……]