2009-09-14 7 views
0

J'ai besoin d'un plugin pour redimensionner un DIV verticalement, juste utiliser jQuery (pas jq UI). voici un exemple du code HTML:Redimensionnable DIV seulement horizontalement

<div class="wrapper" style="width:300px; height:300px; padding:50px; border:1px solid black;"> 

    <div class="resizable" style="height:300px; width:150px; background:green;float:left"> 

     TEST TEST 

    </div> 


    <div class="handle" style="width:10px; height:60px; float:left; margin-top:120px; background:red;"> </div> 

</div> 

merci.

Répondre

0

Jetez un oeil à l'intégré height() fonction:

$(function() 
{ 
    $(".resizable").height(300); // .resizable to 300px in height 
}); 
1
jQuery('.resizable').css({ 
    'height': '150px' 
}) 

Si vous demandez gentiment, plus de gens auraient répondu depuis le temps.

+0

et ne l'a pas re-marqué avec "send-me-teh-codez" – Natrium

Questions connexes