操作步骤:
1、在jQuery官网下载jQuery.js文件,下载jQuery-ui系列文件。
2、VS项目管理中添加jquery-1.9.1.js 和 jquery-ui.custom.js到Scripts文件夹,css里面添加jquery-ui-1.10.3.custom.css样式文件
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="css/ui-lightness/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#btn1").button();
});
</script>
</head>
<body>
<input type="button" id="btn1" value="submit" />
</body>
</html>
<head>
<title></title>
<link href="css/ui-lightness/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.9.1.js" type="text/javascript"></script>
<script src="Scripts/jquery-ui-1.10.3.custom.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$("#btn1").button();
});
</script>
</head>
<body>
<input type="button" id="btn1" value="submit" />
</body>
</html>
引用的顺序是:先引用jquery-ui-1.10.3.custom.css文件,然后引用jquery-1.9.1.js文件,最后引用jquery-ui-1.10.3.custom.js
显示的标签样式会很绚丽