<html>
<head>
<link rel="stylesheet" href="query-ui.css">
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui.js"></script>
<link rel="stylesheet" href="style.css">
<script>
$(function(){
$("#msg").draggable();
})
</script>
</head>
<body>
<div id="msg" style="width:300px;height:200px;border:1px solid #eee;float:left;position:fixed; top:45%; left:45%;">
<div style="background:#eee;">
<div οnclick="javascript:document.getElementById('msg').style.display='none';" style="height:20px;float:right;">
X
</div>
<div style="height:25px;width:20px;">
<nobr>提示</nobr>
</div>
</div>
<div style="width:100%,height:180px;text-align:center;line-height:180px;">
至少选择一项 !
</div>
</div>
</body>
<head>
<link rel="stylesheet" href="query-ui.css">
<script src="jquery-1.9.1.js"></script>
<script src="jquery-ui.js"></script>
<link rel="stylesheet" href="style.css">
<script>
$(function(){
$("#msg").draggable();
})
</script>
</head>
<body>
<div id="msg" style="width:300px;height:200px;border:1px solid #eee;float:left;position:fixed; top:45%; left:45%;">
<div style="background:#eee;">
<div οnclick="javascript:document.getElementById('msg').style.display='none';" style="height:20px;float:right;">
X
</div>
<div style="height:25px;width:20px;">
<nobr>提示</nobr>
</div>
</div>
<div style="width:100%,height:180px;text-align:center;line-height:180px;">
至少选择一项 !
</div>
</div>
</body>
</html>
引用的文件路径
code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css code.jquery.com/jquery-1.9.1.js code.jquery.com/ui/1.10.4/jquery-ui.js http://jqueryui.com/resources/demos/style.css