我剛開始使用MVC3。我使用的字段是這樣的:我在MVC3中輸入字段的寬度
<div class="editor-field">
@Html.TextBoxFor(model => model.Status.RowKey, new { disabled = "disabled", @readonly = "readonly" })
</div>
它創建這個HTML
<div class="editor-field">
<input disabled="disabled" id="Status_RowKey" name="Status.RowKey" readonly="readonly" type="text" value="0001" />
</div>
但是我注意到所有的輸入字段具有相同的寬度大約是160像素。有沒有一種方法可以讓它們更寬,爲什麼他們默認這個。在我的編輯場I類
可能重複[如何設置HTML的寬度。 textboxfor?](http://stackoverflow.com/questions/3575067/how-to-set-width-of-html-textboxfor) – 2012-09-06 12:00:20