(像MVC @import html关键字这样的帖子显示我的类似问题,但解决方案似乎没有解决我的问题.)
我试图在.cshtml文件中使用以下代码.css @import与Razor冲突,所以我尝试了@@ import但无济于事.我在Visual Studio中遇到运行时错误,例如"无法找到路径控制器/media/css/site_jui.ccss".
<style type="text/css" media="screen">
@import "/media/css/site_jui.ccss";
@import "/release-datatables/media/css/demo_table_jui.css";
@import "/media/css/jui_themes/smoothness/jquery-ui-1.7.2.custom.css";
/*
* Override styles needed due to the mix of three different CSS sources! For proper examples
* please see the themes example in the 'Examples' section of this site
*/
.dataTables_info { padding-top: 0; }
.dataTables_paginate { padding-top: 0; }
.css_right { float: right; }
#example_wrapper .fg-toolbar { font-size: 0.8em }
#theme_links span { float: left; padding: 2px 10px; }
</style>
Run Code Online (Sandbox Code Playgroud)
Sim*_*ead 18
您可以使用double @
来逃避@
:
@@import "/media/css/site_jui.css";
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
4208 次 |
最近记录: |