母页引用的css和js 创建的内容页下不起作用

母页引用的css和js 创建的内容页下不起作用

问题描述:

 母页的head
<head id="head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>


    <link href="Scripts/Plugin/EasyUI/themes/default/easyui.css" rel="stylesheet" />
    <link href="Scripts/Plugin/EasyUI/themes/icon.css" rel="stylesheet" />
    <link href="Styles/icon.css" rel="stylesheet" />
    <link href="Styles/common.css" rel="stylesheet" />
    <link href="Scripts/Plugin/showloading/showLoading.css" rel="stylesheet" />
    <script src="Scripts/jquery-1.8.0.min.js"></script>
    <script src="Scripts/Plugin/EasyUI/jquery.easyui.min.js"></script>
    <script src="Scripts/jquery-extend.js"></script>
    <script src="Scripts/jquery-control-extend.js"></script>
    <script src="Scripts/Plugin/showloading/jquery.showLoading.min.js"></script>
    <script src="Scripts/json2.js"></script>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>



子页的 head
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script src="../../Scripts/jquery.uploadify-v2.1.0/swfobject.js" type="text/javascript"></script>
    <link href="../Scripts/jquery.uploadify-v2.1.0/example/css/default.css" rel="stylesheet" />
    <link href="../Scripts/jquery.uploadify-v2.1.0/uploadify.css" rel="stylesheet" />
    <script src="../Scripts/jquery.uploadify-v2.1.0/jquery.uploadify.v2.1.0.min.js"></script>
    <script src="../Scripts/jquery.uploadify-v2.1.0/swfobject.js"></script>

</asp:Content>

你aspx路径都搞错了吧。。一个是../../,一个是../,都是同一个scripts目录。。

直接用绝对路径,从根目录算起,如果你的scripts文件夹在根目录下,路径直接写成下面的,其他的一起改过来

  <script src="/Scripts/jquery-1.8.0.min.js"></script>
    <script src="/Scripts/Plugin/EasyUI/jquery.easyui.min.js"></script>

应该就是路径问题 你写的感觉太乱了