求助]这段js,咋一点反应都没呢?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>无标题页</title>
<script type="text/javascript">
function useMethods()
{
var oDiv=document.getElementById("div1");
alert(oDiv.style.item(0));
alert(oDiv.style.getPropertyValue("background-color"));
oDiv.style.removeProperty("background-color");
}
</script>
</head>
<body>
<form id="form1">
<div id="div1" style=" background-color:Red; height:50px; width:50px"></div><br />
<input type=button value="use methods" onclick="useMethods()" />
</form>
</body>
</html>
为什么什么反应都没呢?