【问题标题】:Text is not visible in IE6文字在 IE6 中不可见
【发布时间】: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


【解决方案1】:

长话短说:

在这种情况下,高度校正似乎起到了作用。 Holly Hack 涉及将以下代码添加到 CSS 文件中:

/* Hides from IE5-mac */
div#content 
{
  height: 1%;
}

/* 结束对 IE5-mac 的隐藏 / / — Holly Hack for IE 6 Peekaboo bug —*/

此代码的解释可以在 John and Holly 网站上找到。

取自这里http://www.bpwrap.com/2005/08/the-internet-explorer-6-peekaboo-bug/ 非常感谢作者。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-02-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多