/**
* 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);

相关文章:

  • 2021-11-18
  • 2021-08-20
  • 2021-08-08
  • 2021-06-13
  • 2021-05-22
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-20
  • 2021-08-08
  • 2021-10-13
  • 2022-01-05
  • 2022-12-23
  • 2021-10-11
  • 2021-08-13
相关资源
相似解决方案