我试图通过左浮动让标签换行到下一行。在 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/