<style>
		#mycar {
			border: 1px solid gray;
			width: 50px;
			height: 30px;
			position: absolute;
			left: 0px;
			top: 0px;
		}
		#myblock {
			border: 1px solid gray;
			width: 640px;
			height: 480px;
			position: relative;
		}

	<script>
		var myblock, mycar, res, outsidew, outsideh, carw, carh;
	</script>

<h1>物品沿著框線慢慢移動的效果</h1>

<div id='myblock'>
	<div id='mycar'></div>
</div>
<div id='res'></div>