2010-05-25 48 views
2

這是我的代碼jQueryUI的:試圖顯示一個對話框

<script type="text/javascript"> 
    $(function() { 
     $("#dialog").dialog(); 
    }); 
    </script> 


<div id="dialog" title="Basic dialog"> 
    <p>This is the default dialog which is useful for displaying information. The dialog window can be moved, resized and closed with the 'x' icon.</p> 
</div> 

和螢火說jQuery的UI-1.7.2.custom.min.js被加載。

有什麼想法?

問候

哈維

+0

我沒有看到任何問題。 – Reigel 2010-05-25 06:18:09

+0

67個問題,38%接受.... – redsquare 2010-05-25 08:35:11

回答

1

你的代碼工作,you can see a working demo here

你確定你還包含jQuery UI的樣式表嗎?您可能需要包含隨附的下載文件(以及相關圖像在相同的相關文件夾中),或者使用CDN託管的。你可以找到1.7.2的jQuery UI的博客這裏的CDN鏈接的各種默認的主題:http://blog.jqueryui.com/2009/06/jquery-ui-172/(下谷歌AJAX庫API>主題

最後一件事,作爲評議人以上提到,你應該accept answers to your questions,它會幫助你更快地回答你未來的問題。