Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/asp.net-mvc-3/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net mvc 3 使用引导时如何更改控件宽度_Asp.net Mvc 3_Twitter Bootstrap - Fatal编程技术网

Asp.net mvc 3 使用引导时如何更改控件宽度

Asp.net mvc 3 使用引导时如何更改控件宽度,asp.net-mvc-3,twitter-bootstrap,Asp.net Mvc 3,Twitter Bootstrap,我有MVC应用程序。我正在使用CSS的引导。 现在,我想在视图中使用宽度约为500px的文本区域 我有这个密码 @Html.TextArea("Comment", "", 5, 200, new { @class = "Comment-" + @ViewBag.EId }) 现在,在引导文本区域的宽度是206px,现在我想改变文本区域的宽度 仅此观点。我不想改变CSS中的值 如何做到这一点 @Html.TextArea( "Comment", "", 5,

我有MVC应用程序。我正在使用CSS的引导。 现在,我想在视图中使用宽度约为500px的文本区域

我有这个密码

 @Html.TextArea("Comment", "", 5, 200, new { @class = "Comment-" + @ViewBag.EId })
现在,在引导文本区域的宽度是206px,现在我想改变文本区域的宽度 仅此观点。我不想改变CSS中的值

如何做到这一点

@Html.TextArea(
    "Comment", 
    "", 
    5, 
    200, 
    new { 
        @class = "Comment-" + @ViewBag.EId, 
        style = "width: 500px" 
    }
)