Css changes in code, doesnt show when debugging mvc 3 application
I use the li开发者_StackOverflow社区ne
@Html.EditorFor(c => c.Amount, new { @class = "editor" })
and in site.css I have the code:
.editor
{
width: 100;
}
also I use the line
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
in the head of the _Layout
But when I debug the application, the textbox(Editor) is not 100px wide. It's as though none of the changes in the css file is showing. I'm using firefox, and also I tried to clear the cache in firefox, but no result.
You should supply the unit:
.editor { width: 100px; }
精彩评论