简体   繁体   English

创建了一个称为“ MvcWebRole”的MVC解决方案。 在此区域中,我创建了一个名为“ Content”的文件夹来存储我的css文件

[英]Created one MVC solution called “MvcWebRole”. In this area I created a folder named “Content” to store my css files

I want to access "Css" files from my application folder structure. 我想从我的应用程序文件夹结构访问“ Css”文件。 I have given like this 我这样给

<pre>
<code>
 <link rel='stylesheet' id='spoton-style-css' href="~MvcWebRole/Content/wp-content/plugins/cloudidx-layout-option/assets/css/spoton-stylea560.css?ver=3.9.1" type='text/css' media='all'

But "Css" reference was not taking from project folder. 但是“ Css”参考不是从项目文件夹中获取的。

Can any one can help me on this. 谁能帮我这个忙。

尝试这个 :

<link rel='stylesheet' id='spoton-style-css' href="@Url.Content("~/Content/wp-content/plugins/cloudidx-layout-option/assets/css/spoton-stylea560.css")" type='text/css' media='all' />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 创建区域中的 MVC 分隔布局 - MVC separated layout in created area 将 MVC 内容文件夹放入区域 - Placing MVC Content folder into Area 新 MVC 在模型文件夹中创建了一个名为“errorviewmodel.cs”的 CS 文件。 我对命名约定感到困惑 - New MVC Created A CS file called "errorviewmodel.cs" In Models Folder. I am Confused On Naming Convention 我创建了一个可以上传和下载文件的项目,已上传的文件将存储在我的硬盘中。 - i created a project that can upload and download file, files that has been uploaded will be store in my hard disk. 布局区域中的链接到位于ASP NET MVC应用程序根目录中的Content \\ Css文件夹 - Links in area Layout to Content\Css folder located in the root of ASP NET MVC application 我可以转到根文件夹MVC上的内容文件吗? - Can I go to content files on root folder MVC? AuthorizeAttribute MVC-限制对用户创建的内容的访问 - AuthorizeAttribute MVC - restrict access to user created content ASP.NET MVC希望我将我的SQL Server数据库文件存储在App_Data文件夹中 - 我应该吗? - ASP.NET MVC wants me to store my SQL Server database files in the App_Data folder — should I? 我可以在MVC 5中应用用户创建的角色吗? - Can I apply user created Roles in MVC 5? 保存在文件夹中的文件始终在MVC 4的解决方案资源管理器中排除 - Files saved in folder are always excluded in solution explorer in MVC 4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM