IE7 出现 sIFR 问题 位于 H3 内

发布于 2024-07-30 15:00:44 字数 780 浏览 5 评论 0原文

我在 IE7 中查看某些页面时刚刚发现了一个问题。 如果我有一个很长的标题,可以换行到第二行,或者更糟糕的是,如果我在中间放置一个 BR,就会失去间距。

看一页:

损坏的示例1

您会注意到顶部的边距当标题呈现时,页面的偏移量会发生偏移,从而丢弃所有内容。

我正在使用这样的代码:

<h3 style="margin:0"><a href="../books/msc1.html">Middle School Confidential™<br>
Book 1: Be Confident in Who You Are</a></h3>

但重复多次以夸大问题。

我尝试了另一个测试,去掉了 BR,让线条自然缠绕。 这是间距方面的改进,但并不能解决问题。 (相同的 URL,但将其设为 m1.html)

在第三个示例中,每个标题仅占用一行 (m2.html)

一种选择是将标题分成两行,每行都有其 on H 标签。 但由于这些是链接,因此第一行可能会转到一个地方,第二行可能会转到另一个地方,因为当您将鼠标悬停在它们上时,它们不会同时改变颜色。

那么,有什么解决办法吗?

我相信我拥有当前版本的 sIFR 3。在我知道此问题得到解决之前,我不想升级到 IE8。

谢谢!

I have a problem I just discovered when viewing certain pages in IE7. If I have a very long header that wraps to a second line, or worse, if I put a BR in the middle, that throws off the spacing.

One page to look at:

broken example1

You'll notice that the margin at the top of the page gets offset as the headings are rendered, throwing everything off.

I'm using code like this:

<h3 style="margin:0"><a href="../books/msc1.html">Middle School Confidential™<br>
Book 1: Be Confident in Who You Are</a></h3>

but repeated many times to exaggerate the problem.

I tried another test where I removed the BR and let the lines wrap naturally. This is an improvement in terms of the spacing, but it doesn't fix the problem. (Same URL but make it m1.html)

In the third example, each heading takes up only one line (m2.html)

One option would be to just split up the heading onto two lines, each with its on H tags. But since these are links, then it will appear that the first line might go to one place, and the second to another, since they wouldn't change color simultaneously as you roll over them.

So, any solutions to this?

I believe I have the current version of sIFR 3. I don't want to upgrade to IE8 until I know this is resolved.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽梦忆笙歌 2024-08-06 15:00:44

我猜想问题来自于 IE7 不处理字体的相对大小。

尝试更改您的CSS:

.sIFR-active H3
{
    font-size: 140%;
}

并使用静态值覆盖相对字体大小和行高,例如:

.sIFR-active H3
{
    font-size: 18px;
    line-height:;
}

希望能为您指明正确的方向。

I would guess that the issues come from IE7 not handling the relative sizing of your fonts.

try changing your css from:

.sIFR-active H3
{
    font-size: 140%;
}

and override the relative font-size and line-height with static values such as:

.sIFR-active H3
{
    font-size: 18px;
    line-height:;
}

hope that points you in the right direction.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文