Mercurial > hg > MPIWGThesaurus
comparison jquery-ui/development-bundle/demos/sortable/display-grid.html @ 0:b2e4605f20b2
beta version
author | dwinter |
---|---|
date | Thu, 30 Jun 2011 09:07:49 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b2e4605f20b2 |
---|---|
1 <!DOCTYPE html> | |
2 <html lang="en"> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>jQuery UI Sortable - Display as grid</title> | |
6 <link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"> | |
7 <script src="../../jquery-1.5.1.js"></script> | |
8 <script src="../../ui/jquery.ui.core.js"></script> | |
9 <script src="../../ui/jquery.ui.widget.js"></script> | |
10 <script src="../../ui/jquery.ui.mouse.js"></script> | |
11 <script src="../../ui/jquery.ui.sortable.js"></script> | |
12 <link rel="stylesheet" href="../demos.css"> | |
13 <style> | |
14 #sortable { list-style-type: none; margin: 0; padding: 0; } | |
15 #sortable li { margin: 3px 3px 3px 0; padding: 1px; float: left; width: 100px; height: 90px; font-size: 4em; text-align: center; } | |
16 </style> | |
17 <script> | |
18 $(function() { | |
19 $( "#sortable" ).sortable(); | |
20 $( "#sortable" ).disableSelection(); | |
21 }); | |
22 </script> | |
23 </head> | |
24 <body> | |
25 <div class="demo"> | |
26 | |
27 <ul id="sortable"> | |
28 <li class="ui-state-default">1</li> | |
29 <li class="ui-state-default">2</li> | |
30 <li class="ui-state-default">3</li> | |
31 <li class="ui-state-default">4</li> | |
32 <li class="ui-state-default">5</li> | |
33 <li class="ui-state-default">6</li> | |
34 <li class="ui-state-default">7</li> | |
35 <li class="ui-state-default">8</li> | |
36 <li class="ui-state-default">9</li> | |
37 <li class="ui-state-default">10</li> | |
38 <li class="ui-state-default">11</li> | |
39 <li class="ui-state-default">12</li> | |
40 </ul> | |
41 | |
42 </div><!-- End demo --> | |
43 | |
44 | |
45 | |
46 <div class="demo-description"> | |
47 <p> | |
48 To arrange sortable items as a grid, give them identical dimensions and | |
49 float them using CSS. | |
50 </p> | |
51 </div><!-- End demo-description --> | |
52 | |
53 </body> | |
54 </html> |