开发者

Css changes in code, doesnt show when debugging mvc 3 application

开发者 https://www.devze.com 2023-03-19 13:11 出处:网络
I use the li开发者_StackOverflow社区ne @Html.EditorFor(c => c.Amount, new { @class = \"editor\" })

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; }
0

精彩评论

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