【发布时间】:2011-12-31 01:04:30
【问题描述】:
我正在做一个站点 (asp.net mvc2),它也应该在 IE6 中运行。 在页面上,我将控件作为局部视图注入。
<div id="LocationContainer">
<% Html.RenderPartial("../Shared/EditTemplates/ContactInfoTemplate",
new ContextAwareViewModel<ContactInfoViewModel>()
{
ProcessStep = ProcessStep.Configure,
Model = Model.ContactPerson
}); %>
</div>
它包含以下sn-p代码:
<div style="margin-bottom: 10px;">
<%= Html.CheckBox(Model.Model.ContactType + ".IsDTBranch",
Model.Model.PersonViewModel.IsTDBranch,
new { @class = "tdBranchChkBox"}) %>
<%= Html.Resource("Resources, ThisIsTDBranchLabel") %>
</div>
最后给出了这个html:
<div style="margin-bottom: 10px;">
<input class="tdBranchChkBox" id="EventContact_IsDTBranch"
name="EventContact.IsDTBranch" type="checkbox" value="true" />
Il s'agit d'une succursale de la TD
</div>
毕竟 IE6 不呈现文本。但是当我开始选择它应该在的区域时,文本就在那里并出现。
有人知道怎么治吗? 谢谢。
【问题讨论】:
-
那么请关闭这个主题..
标签: asp.net-mvc-2 internet-explorer-6