Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
asp.net mvc 3でテキストボックスの幅を設定するにはどうすればよいですか? これは動作しません:
@Html.TextBox("Name", new { style = "width:500px" })
これを試してください、これはうまくいくはずです..
@Html.TextBox("Name", new { @class= "mySize" }) .mySize { width: 500px; }
また、コードにセミコロンを追加してみて、それが機能するかどうかを確認してください。
@Html.TextBox("Name", new { style = "width:500px;" })