我试图在< p>元素应该从sencond线开始,并覆盖两行,但在firefox第一个字母没有定位,因为我期望(工作在其他地方,即使在IE,只有FF使问题...)
http://jsfiddle.net/6SfHG/1/
任何想法如何使其从同一层面开始?
解决方法
这对我来说是有效的,虽然它不是很优雅:
So to get a cross browser drop cap effect using :first-letter pseudo-element that vertically aligns,you need to apply float: left,then find the height of the typeface cap height,reduce the line-height to that,adjust margin-top so it aligns correctly in Firefox and in Opera or a WebKit browser,and then using conditional comments for an IE only stylesheet remove margin-top and change line-height to correctly vertically align the type.
http://nickcowie.com/2009/drop-caps-first-letter-and-firefox/