在MVC Razor View中链接CSS的问题 [英] Problem to Link CSS In MVC Razor View
本文介绍了在MVC Razor View中链接CSS的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是MVC的新手我希望将我的CSS应用于布局页面如果我链接我的css文件,这不适用于IE,但在chrome中工作,如果我在页面中写入相同的CSS,那么它可以正常工作IE。
i不知道是什么问题。即使我使用asp.net语法,它也适用于IE。
谢谢
I am new to MVC I want To apply my CSS with layout page if i link my css file which is not work with IE,but work in chrome , also if i write the same css in the page then it works fine with IE.
i don't know what is the issue. even if i used asp.net syntax then it works fine with IE.
Thanks
推荐答案
在这样的布局中配置你的CSS文件..
Configure your CSS files in layout like this..
<link href="@Url.Content("~/Content/themes/DefaultTheme/Site.css")" rel="stylesheet" type="text/css" /> <head> </head>
这篇关于在MVC Razor View中链接CSS的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文