当网站的字体为12px时,在Chrome里显示的非常小,看起来非常的吃力。修改的方法:
1. 务必先关闭你的Chrome浏览器。(不先关闭的话,修改可能会被覆盖掉)
2. 最好再备份一下配置文件,如果配置文件搞坏了会很惨:
cd .config
/
google
-
chrome
/
Default
cp Preferences Preferences.bak
cp Preferences Preferences.bak
3. 修改Preferences文件
gedit Preferences
找到:
"
webkit
"
: {
" webprefs " : {
" default_fixed_font_size " : 16 ,
" default_font_size " : 17 ,
" fixed_font_family " : " \u6587\u6CC9\u9A7F\u7B49\u5BBD\u5FAE\u7C73\u9ED1 " ,
" sansserif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 " ,
" serif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 "
}
}
" webprefs " : {
" default_fixed_font_size " : 16 ,
" default_font_size " : 17 ,
" fixed_font_family " : " \u6587\u6CC9\u9A7F\u7B49\u5BBD\u5FAE\u7C73\u9ED1 " ,
" sansserif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 " ,
" serif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 "
}
}
加上"minimum_font_size": 15,
"
webkit
"
: {
" webprefs " : {
" default_fixed_font_size " : 16 ,
" default_font_size " : 17 ,
" fixed_font_family " : " \u6587\u6CC9\u9A7F\u7B49\u5BBD\u5FAE\u7C73\u9ED1 " ,
" minimum_font_size " : 15 ,
" sansserif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 " ,
" serif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 "
}
}
" webprefs " : {
" default_fixed_font_size " : 16 ,
" default_font_size " : 17 ,
" fixed_font_family " : " \u6587\u6CC9\u9A7F\u7B49\u5BBD\u5FAE\u7C73\u9ED1 " ,
" minimum_font_size " : 15 ,
" sansserif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 " ,
" serif_font_family " : " \u6587\u6CC9\u9A7F\u5FAE\u7C73\u9ED1 "
}
}
4. 保存退出。启动Chrome,字体变大了。
本文转自CoderZh博客园博客,原文链接:http://www.cnblogs.com/coderzh/archive/2010/07/18/chrome-minimum-font-size.html,如需转载请自行联系原作者