<style> body{
background-color:#B0B0B0
}
.header{
background-color:#000000;
width:100%;
height:100px;
}
#left{
background-color:#FF0000;
width:15%;
height:700px;
}
</style>
</head>
<body >
<div class="header"></div>
<div id="left" onmouseover="hidden()"></div>
<script>
function hidden(){
document.getElementById("left").style.backgroundColor="#FFFFFF";
} </script>
</body>
```Uncaught TypeError: hidden is not a function
onmouseover @ index.html:26
HTML中使用JS函數通過id調用div,但一直顯示()is not a function
慕碼人8056858
2018-07-22 14:26:12