If I have a <sup>
tag in a multi-line <p>
tag, the line with the superscript on it has a larger line spacing above it than the other lines, irregardless of what line-height I put on the <p>
.
Edit for clarification: I don't mean i have lots of <p>
s, each which is on a single line. I have a single <p>
with enough content in it to cause wrapping onto multiple lines. Somewhere (anywhere) in the text there may be a <sup>
or <sub>
. This affects the line height for that line by adding extra spacing above/below. If I set a larger line-height on the <p>
this makes no difference to the problem. The line-height is increased, but the extra spacing still remains.
How can I make it consistent - i.e. all lines have the same spacing whether they contain a <sup>
or not?
Your solutions must be cross-browser (IE 6+, FF, safari, opera, chrome)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…