jQuery 14 jQueryUI

jQueryUI是封装好了的ui,只要把三个文件加入到工程目录中,然后在head中引用即可

jquery-ui-*.*.*.custom.min.js

jquery-ui-*.*.*.custom.min.css

以上两个文件的版本要一样,其中*.*.*为版本号,可以到官网下载 http://jqueryui.com

再把jquery-*.*.*.min.js也引用即可

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="JScript/jquery-1.9.1.js" type="text/javascript"></script>
    <link href="JScript/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />   
    <script src="JScript/jquery.ui.accordion.min.js" type="text/javascript"></script>
    
   
    <script type="text/javascript">
        $(function () {
            $("#dag").dialog();
        });
    </script>
</head>
<body>
<div id="dag">
  你好,我是对话框。
</div>
</body>
</html>

它有许多实例,也非常好用,可以用时再去了解它。

原文地址:https://www.cnblogs.com/yagzh2000/p/3099049.html