Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/39.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html ASP.net不显示CSS_Html_Css_Asp.net - Fatal编程技术网

Html ASP.net不显示CSS

Html ASP.net不显示CSS,html,css,asp.net,Html,Css,Asp.net,我的Index.cshtml页面如下所示 <html> <head runat="server"> <link href="~/Content/index.css" rel="stylesheet" type="text/css" /> <asp:ContentPlaceHolder ID="HeadContent" runat="server" /> </head> <body> &

我的Index.cshtml页面如下所示

<html>
<head runat="server">
    <link href="~/Content/index.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="HeadContent" runat="server" />
</head>
    <body>
        <h1 class="title text-center">Master/Detail</h1>
        <div class="md-container">
            <div class="col-3 master">
                <div class="master-item active-item" onclick="select(this)">Option 1</div>
                <div class="master-item" onclick="select(this)">Option 2</div>
                <div class="master-item" onclick="select(this)">Option 3</div>
                <div class="master-item" onclick="select(this)">Option 4</div>
            </div>
            <div class="col-9 detail">
                <button id="back-btn" class="hidden-md" onclick="back()">< Back</button>
                <h1 class="detail-title text-center">Option 1</h1>
            </div>
        </div>
    </body>
</html>

这是我的项目结构


由于某种原因,我的Visual studio无法识别我创建的文件夹“Content”,我尝试在
之后添加@Url.Content。在我将“index.css”文件移动到deafult“css”文件夹并更改路径后,它开始工作