[英]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.