Jquery 如何将样式源更改为本地点?
下面是三行,其中两行指向打开对话框的脚本等,但上面一行是指向样式的链接。它使用网络,我知道我机器上的位置。我只是不知道如何在本地指向它Jquery 如何将样式源更改为本地点?,jquery,html,css,Jquery,Html,Css,下面是三行,其中两行指向打开对话框的脚本等,但上面一行是指向样式的链接。它使用网络,我知道我机器上的位置。我只是不知道如何在本地指向它 <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - Micros
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Microsoft tutorial</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
<link href="http://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet">
<script src="~/Scripts/jquery-2.1.3.js"></script>
<script src="~/Scripts/jquery-ui-1.11.4.js"></script>
</head>
@ViewBag.Title-Microsoft教程
@style.Render(“~/Content/css”)
@Scripts.Render(“~/bundles/modernizer”)
我在这里假设您已经将jqueryui.css
文件复制到了它的本地文件夹中,如果不这样做的话。然后只需更新链接
元素,如下所示:
<link rel="stylesheet" href="/path/to/jquery-ui.css" />
其中/path/to
是css文件的实际路径。类似于~/Styles
或~/Styles/jqueryui/1.10.4/themes/ui-lightness