在 IE 中,在文本框中左右浮动图像奇怪的间距

发布于 2024-07-20 23:17:14 字数 247 浏览 4 评论 0原文

我的例子是 这里

当被告知在 FF 中右对齐或左对齐时,徽标看起来很好,而且它们看起来与文本正确换行,但在 IE 中,第一行文本后会出现巨大的间隙。

我还创建了左右浮动样式并尝试应用于徽标,但得到了相同的效果。 我知道这是 IE 中的一个问题,但我还没有找到解决方案。

My example is here

The logos look fine when told to align right or left in FF and they seem to wrap properly with the text, but in IE a huge gap shows up after the first line of text.

I have also created float right and left styles and tried to apply to the logos but got the same effect. I know this is an issue in IE, but I haven't found the fix for it yet.

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

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

发布评论

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

评论(1

揽清风入怀 2024-07-27 23:17:14

只需在 floatleft 和 floatright CSS 声明中包含 float 属性,而不是在 HTML 中使用align="left"和align="right":

.floatleft {
    float:left;
    padding: 0px 8px 8px 0px;
}
.floatright {
    float: right;
    padding: 0px 0px 8px 8px;
}

Rather than using the align="left" and align="right" in your HTML, just include float attributes in your floatleft and floatright CSS declarations:

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