我有一个固定布局的网页。这是我的HTML,
html
<div id="sortable" style="display: block;">
<fieldset style="float: left;">
<table>
<tbody>
<tr>
<td><a href="#"><img src="Data/Images/2012_08_12_00_47_53_4753.jpg" style="border-color:#DDDDDD;border-width:2px;border-style:solid;width:50px;margin-left: 10px"></a></td>
<td><a href="#"><img src="Data/Images/2012_08_12_00_47_54_4754.png" style="border-color:White;border-width:2px;border-style:solid;width:50px;margin-left: 10px"></a></td>
<td><a href="#"><img src="Data/Images/2012_08_12_00_47_55_4755.jpg" style="border-color:White;border-width:2px;border-style:solid;width:50px;margin-left: 10px"></a></td>
<td><a href="#"><img src="Data/Images/2012_08_12_00_47_56_4756.jpg" style="border-color:White;border-width:2px;border-style:solid;width:50px;margin-left: 10px"></a></td>
</tr>
</tbody>
</table>
</fieldset>
</div>
现在在我的页面上,我想包含 jquery 可排序选项。我试过但失败了。这是我尝试过的:
jQuery
$( "#sortable" ).sortable();