我认为您必须退回到 jQuery 才能使可拖动功能正常工作,例如:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.holder {
height: 20px;
background-color: rgba(255, 0, 0, 0.5);
}
.span2 {
background-color: rgba(0, 255, 0, 0.5);
}
</style>
<link href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
<script>
function init(){
$('div.holder').draggable();
}
$(document).ready(function(){init()});
</script>
</head>
<body>
<div class="row">
<div class="holder">
<div class="span2">
Foo
</div>
<div class="span2">
Bar
</div>
</div>
</div>
</body>
</html>