我怎樣才能得到藍色方框與紅色比例? (使用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>
即時通訊不知道你的意思是規模都......我想你想要的位置也改變呢? – ManseUK 2012-02-09 10:41:47