// 這樣直接在css前面家delay是不起作用的
$("div").delay(100).css("position","fixed");
// 需要在delay後面使用queue
// queue()方法顯示或操作在元素上執行的函數隊列。
$("div").delay(100).queue(function(next){
$(this).css("position","fixed");
next();//這裏必須加next,否則queue只會執行一次
})