带有字段集的 IE7 Partialview 导致下划线
来自 stackoverflow 的人们大家好 我发现了更多IE7问题(在IE9兼容模式下测试)。我正在尝试通过使用 JQuery 将partialView动态加载到我的页面中,如下所示:
$('#PartialContainer').load('@Url.Action("LoadPartial", "Controller", new { Id = Model.Id })');
现在我遇到的问题是Partial在页面内有一个字段集标签,在图例下方有几行文本。问题是文本带有字段集的线条(边框)下划线,但由于某种原因下划线不会出现在图例下方。部分看起来像这样:
<fieldset>
<legend>Partial</legend>
<div class="explanation">
The underlined text is here!
</div>
</fieldset>
以前有其他人遇到过这个问题吗?你的解决方案是什么?
PS:这不会发生在 crome、firefox 或 IE9 中。
PS2:它位于 ASP.NET 4.0 MVC 3.0 项目中。
编辑:
这是问题的图片: http://i1073.photobucket.com /albums/w382/kroeze1992/IE7UnderlinedBug.png
Hello people from stackoverflow
I have found more IE7 problems (tested in compatibility mode of IE9). I am trying to dynamically load a partialView into my page through the use of JQuery, like this:
$('#PartialContainer').load('@Url.Action("LoadPartial", "Controller", new { Id = Model.Id })');
Now the problem i am getting is that the Partial has a fieldset tag inside the page, an under the legend sit a few lines of text. The problem is that the text is underlined with the lines of the fieldset (the borders), But for some reason the underlines to not appear underneath the legend. the partial look like this:
<fieldset>
<legend>Partial</legend>
<div class="explanation">
The underlined text is here!
</div>
</fieldset>
Has anybody else encountered this problem before, and what was your solution?
PS: this does NOT happen in crome, firefox or IE9.
PS2: it is in a ASP.NET 4.0 MVC 3.0 project.
EDIT:
Here is a picture of the problem: http://i1073.photobucket.com/albums/w382/kroeze1992/IE7UnderlinedBug.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是由字体样式引起的:斜体。我删除了字体样式,不再有下划线:)。
the problem was caused by font-style: italic. i removed the font-style and no more underlines :).