chrome Web开放 字体格式不能显示问题
2016-01-28 13:49
736 查看
/**
* Chrome 32/33 webfont issue fix.
* Requires jQuery.
* More info: http://blog.cloudfour.com/chrome-webfont-issues/ */
(function($, window){
// only proceed if this is Chrome
if (window.navigator.userAgent.indexOf('Chrome') === -1) return;
// only proceed if the version is 32 or greater
var version = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10);
if (version < 32) return;
// once the page has loaded, change the width of the body just
// slightly enough to force a re-paint
$(window).load(function(){
var $body = $('body');
$body.css('width', $body.width() + 1);
$body.css('width', '');
});
})(jQuery, this);
* Chrome 32/33 webfont issue fix.
* Requires jQuery.
* More info: http://blog.cloudfour.com/chrome-webfont-issues/ */
(function($, window){
// only proceed if this is Chrome
if (window.navigator.userAgent.indexOf('Chrome') === -1) return;
// only proceed if the version is 32 or greater
var version = parseInt(window.navigator.appVersion.match(/Chrome\/(\d+)\./)[1], 10);
if (version < 32) return;
// once the page has loaded, change the width of the body just
// slightly enough to force a re-paint
$(window).load(function(){
var $body = $('body');
$body.css('width', $body.width() + 1);
$body.css('width', '');
});
})(jQuery, this);
相关文章推荐
- QT5+OpenCV人脸、人眼检测
- org.gradle.process.internal.ExecException:
- Java简易计算器
- Gallery和GridView
- 响应式图片
- MYSQL 插入数据乱码
- layer.alert文字换行
- contiki netstack数据收发结构
- Java中的自动装箱与拆箱
- css属性大全
- 快速排序性能分析
- VMware workstation 9.0中安装Windows server 2012 和 Hyper-v
- js 字符串转换成数字的三种方法
- Unity导出IOS的坑1
- 237,Mac上使用Charles抓包
- ECMAScript 6 proxies
- 常见 Java 字节码 指令 助记符
- delphi非常简单的线程安全队列
- C++的sstream相关知识
- 淘宝Tprofiler工具实现分析