Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jquery和字体大小_Jquery_Css - Fatal编程技术网

jquery和字体大小

jquery和字体大小,jquery,css,Jquery,Css,我注意到在jquery.js主文件中有一个对“fontSize”的引用-我在我的一个页面上注意到字体大小没有改变(无论我在CSS中输入了什么值)。jQuery.js文件是否可能正在覆盖它 在jQuery.js文件中: f.left = b === "fontSize" ? "1em" jQuery的版本是jQuery source中的1.6.4,该块被注释为: // If we're not dealing with a regular pixel number // but

我注意到在jquery.js主文件中有一个对
“fontSize”
的引用-我在我的一个页面上注意到字体大小没有改变(无论我在CSS中输入了什么值)。jQuery.js文件是否可能正在覆盖它

在jQuery.js文件中:

f.left = b === "fontSize" ? "1em"

jQuery的版本是jQuery source中的1.6.4,该块被注释为:

    // If we're not dealing with a regular pixel number
    // but a number that has a weird ending, we need to convert it to pixels
因此,当您给出一个“结尾怪异的数字”时,代码就会执行


尝试输入字体大小:16px!重要的;在css中查看是否有效。

我想说,jQuery不太可能悄悄地更改您的字体大小。尝试在JSFIDLE?Esailija中复制/隔离该bug-我添加了!重要的是,这使它更大(所以这是好的)。然而,我似乎无法把它缩小。我在试8pt,4pt,1pt,它们的尺寸都一样。甚至放8px!重要的是,4px!重要的等等。。不起作用?对!然而,我玩了一些不同的字体,并注意到它能够变得更小。我最初使用的是ms无衬线。当我把它改成泰晤士报新罗马版时,我确实看到了一个较小的尺寸,当我调整尺寸时。