<html>
<head>
<title>Map in HIT</title>
<style type="text/css">
h1 {
font: 20pt sans-serif;
}
#outerDiv {
height: 600px;
width: 800px;
border: 1px solid black;
position: relative;
overflow: hidden;
}
#innerDiv {
position: relative;
left: 0px;
top: 0px;
}
</style>
<script language="JavaScript" src="display.js"></script>
</head>
<body onload="init()">
<p>
<h1>Map in HIT</h1>
</p>
<div id="outerDiv">
<div style="position: absolute; top: 10px; left: 10px; z-index: 1">
<img src="resources/images/zoom.png"
onclick="toggleZoom()"/>
</div>
<div id="innerDiv" style="z-index: 0">
魔兽世界东西部王国(测试)
</div>
</div>
</body>
</html>
我把js包里的代码放在同一页面是好用的,但是为什么放在包里就不行呢?