就是在拖動要排序的物件時整排元素都會被往下推,
查了一下好像純粹是個bug,但是好像也沒有修正的樣子?
可是我已經忘記在哪裡找到了 囧
解法:
jQuery('.xxxx').sortable({
start : function(event, ui) {
ui.placeholder.html(' ');
}
});
不知道為什麼讓placeholder有個空白就沒事了,至少問題解決了。
jQuery('.xxxx').sortable({
start : function(event, ui) {
ui.placeholder.html(' ');
}
});
不知道為什麼讓placeholder有個空白就沒事了,//中斷A網頁session寫入的動作 session_write_close(); //B與C網頁的url $b_url = 'http://api.example.com/login'; $c_url = 'http://api.example.com/get_data'; //先登入B網頁 $b_ch = curl_init($b_url); curl_setopt($b_ch, CURLOPT_POST, 1); curl_setopt($b_ch, CURLOPT_RETURNTRASFER, 1); curl_setopt($b_ch, CURLOPT_POSTFIELD, 'username=test&password=love5566'); curl_setopt($b_ch, CURLOPT_COOKIE, session_name().'='.session_id()); curl_setopt($b_ch, CURLOPT_TIMEOUT, 10); curl_exec($b_ch); curl_close(); //再去C網頁取得資料 $c_ch = curl_init($c_url); curl_setopt($c_ch, CURLOPT_POST, 1); curl_setopt($c_ch, CURLOPT_RETURNTRASFER, 1); curl_setopt($c_ch, CURLOPT_COOKIE, session_name().'='.session_id()); curl_setopt($c_ch, CURLOPT_TIMEOUT, 10); $result = curl_exec($c_ch); curl_close();