Archive for the ‘jQuery’ Category

Renderizado de texto con JQuery

Martes, Marzo 10th, 2009

Leyendo la lista de Ovillo me enteró como arreglar el fallo que trae el IE7, que hace que el renderizado de texto falle cuando se muestra/oculta con jQuery ciertos elementos, el texto aparece pixelado.

La solución es aplicar this.style.removeAttribute(’filter’);

Ejemplo:

jQuery.fn.fadeIn = function(speed, callback) {
return this.animate({opacity: ’show’}, speed, function() {
if (jQuery.browser.msie)
this.style.removeAttribute(’filter’);
if (jQuery.isFunction(callback))
callback();
});
};

Más info