Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/03/2013, 09:53
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: Saber si hay overflow

Para saber cuál es el overflow podrías revisar los estilos computados:
Código PHP:
function getCSS(o,prop){
    if(
window.getComputedStyle){
        return 
document.defaultView.getComputedStyle(o,null).getPropertyValue(prop); 
    }else{ 
        var 
re = /(-([a-z]){1})/g
        if (
prop == 'float'prop 'styleFloat'
        if (
re.test(prop)) { 
            
prop prop.replace(re, function () { 
                return 
arguments[2].toUpperCase(); 
            }); 
        } 
        return 
o.currentStyle[prop] ? o.currentStyle[prop] : null
    } 
}  
var 
overflow=getCSS(document.getElementById('idElemento'),'overflow'); 
Otra cosa que podrías evaluar es la cantidad de renglones (que puede ser diferente en diferentes navegadores):
http://www.forosdelweb.com/f13/cuant...go-div-632522/

Y aunque seguramente lo tendrás en cuenta, para los navegadores que lo soportan (la mayoría) podés usar css3: http://www.desarrolloweb.com/articul...umna-css3.html