开发者

how to apply css class to the root folder?

How shall开发者_开发问答 I apply Css Class to the root folder of my mvc application.Because when the application is not given the name of the controller and the start action it is not displaying the images and the css


I think your referring to the reference within link tag in your header?

If this is the case the best solution in my opinion is to use Url.Conent so your link tag will look something like:

<link href="<%=Url.Content( "~/Content/Site.css" ) %>" rel="stylesheet" type="text/css" />

That way no matter what the url the user is viewing the reference to the style sheet is always correct.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜