Как я могу получить синюю шкатулку с красным цветом? (С помощью JQuery-UI)jQuery scale div содержимое (вложенный div)
Это базовый код, CSS:
#outer {
position:relative;
height:100px;
width:150px;
z-index:1;
background:#F00;
}
#nested {
position:absolute;
left:50px; top:20px;
width:50px; height:20px;
z-index:2;
background:#00F;
cursor:pointer;
}
И HTML:
<div id="outer">
<div id="nested" onclick="$('#outer').effect('scale', {scale:'content',percent:50}, 1000);" />
</div>
im not sure you mean scale both ... Я думаю, вы хотите, чтобы положение тоже изменилось? – ManseUK