css - IE6 float 元素环绕问题

标签 css css-float element internet-explorer-6 word-wrap

我试图通过左浮动让标签换行到下一行。在 Firefox 中,文本将换行到下一行的开头,但是 IE6 会将文本换行到标签文本开头正下方的行。因此,例如,如果 a 标签位于行的中途,它将换行到下一行,但不会换行到开头。

有没有人对如何让换行在行首开始有任何想法?

最佳答案

如果我对问题的理解正确,您可以尝试查看 <nobr>标签。

来自 utoronto.ca :

NOBR marks a block of text that should not contain line breaks -- line breaks are forbidden, an the text will be presented as a single line, without any word wrapping. This is useful for text that you do not wish broken at word spaces, regardless of the page layout.

这里有一些资源:

关于css - IE6 float 元素环绕问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1771509/

相关文章:

css - div 没有正确并排对齐

python - 使用 Selenium 进行 Facebook 搜索

html - 如何在单个表格行中将一个对象左对齐,一个对象在中心(整行)对齐?

html - 为什么 IE 无法读取 CSS 样式表?

HTML/CSS : link not clickable

html - html 标题标签的字体大小初始 CSS 值

html - 使用 Flexbox 构建网格 - 仅在右侧第二行的元素

html - 电子邮件客户端的 float 替代方案

javascript - 如果 id 基于函数参数之一,如何访问 jquery 中的元素?

java - 如果元素类型为 <object></object>,如何使用 Selenium(对于 Java)定位输入文本框