如何在asp.net-mvc视图中更改文本框的宽度
我想要这些字段并排,状态文本框宽度更短
<p> <label for="city">City:</label> <%= Html.TextBox("city")%> <label for="state">State:</label> <%= Html.TextBox("state")%> </p>
编辑:
以下答案似乎都不适合我。我注意到在site.css我看到这样:
fieldset p { margin: 2px 12px 10px 10px; } fieldset label { display: block; } fieldset label.inline { display: inline; } legend { font-size: 1.1em; font-weight: 600; padding: 2px 4px 8px 4px; } input[type="text"] { width: 200px; border: 1px solid #CCC; } input[type="password"] { width: 200px; border: 1px solid #CCC; }
我如何覆盖一个字段(文本框)的这种行为
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。