2010-04-27 5 views

Répondre

0

Ben Alman a un joli scrollbarWidth plugin qui fonctionne bien.

var content = $('#content').css('width', 'auto'), 
    container = content.parent(); 

if (content.height() > container.height()) { 
    content.width(content.width() - $.scrollbarWidth()); 
} 
Questions connexes