我正在开发一个asp.net mvc 2应用程序,并使用Html.TextAreaFor显示一个文本区域,用户可以在其中输入文本,然后根据需要存储和发送文本。
显示此功能的视图是强类型的(typeof(Message))。该消息具有发件人、累赘、主题和消息主体。视图中的代码看起来像下面的<% using (Html.BeginForm()) {%> <%: Html.ValidationSummary(true) %> <fieldset style="height:100%"> <legend>E-mail</legend> <div class="editor-label"> <%: Html.LabelFor(model => model.To) %> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.To) %> <%: Html.ValidationMessageFor(model => model.To) %> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.From) %> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.From) %> <%: Html.ValidationMessageFor(model => model.From) %> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Subject) %> </div> <div class="editor-field"> <%: Html.TextBoxFor(model => model.Subject) %> <%: Html.ValidationMessageFor(model => model.Subject) %> </div> <div class="editor-label"> <%: Html.LabelFor(model => model.Message) %> </div> <div class="editor-field"> <%: Html.TextAreaFor(model => model.Message) %> <%: Html.ValidationMessageFor(model => model.Message) %> </div> <p> <input type="submit" value="SaveMail" /> </p> </fieldset> <% } %>
当我在浏览器中打开这个页面时,提交按钮会放在文本区域上,而我无法让它呈现right...anybody帮助?
发布于 2010-11-09 12:50:13
看起来这是个CSS问题。您是否尝试移除样式以查看其是否正确呈现?
https://stackoverflow.com/questions/4133769
复制相似问题