[jQuery]UI Dialog的說明文件
發表於 : 2010年 9月 30日, 20:12
http://docs.jquery.com/UI/Dialog
最單純的 sample code:
共引用了jquery-ui.css的css, jquery.min.js標準的最新版 jquery 的 js, 及 jquery-ui.min.js 最新版的 jquery ui 的 js
然後使用 <div> 把 dialog 設計好用, 利用 $("#DIVID").dialog() 來秀出來.
最單純的 sample code:
代碼: 選擇全部
<!DOCTYPE html>
<html>
<head>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function() {
$("#dialog").dialog();
});
</script>
</head>
<body style="font-size:62.5%;">
<div id="dialog" title="Dialog Title">I'm in a dialog</div>
</body>
</html>
然後使用 <div> 把 dialog 設計好用, 利用 $("#DIVID").dialog() 來秀出來.