【发布时间】:2013-03-20 10:12:51
【问题描述】:
我有一组段落元素
<p style="font-family:Tahoma; font-size:10.666666666666666; margin:0 0 0 0;">
<p style="font-family:Tahoma; font-size:10.666666666666666; margin:0 0 0 0;">
<p style="font-family:Tahoma; font-size:10.666666666666666; margin:0 0 0 0;">
<p style="font-family:Tahoma; font-size:10.666666666666666; margin:0 0 0 0;">
字体大小后我必须写px。我无法使用我当前的代码
loop
$(this).css("font-size")
我不能使用它,因为它显示了父 div 的字体大小
【问题讨论】:
-
如果后面没有单位(px、pt等),浏览器将忽略字体大小。
-
是的,帕提克·戈萨尔。这是主要问题。我需要写 px 以获得正确的字体大小。