<!DOCTYPE html><html><head><meta charset="UTF-8"><title>css3動畫</title><style>#a{??width: 150px;?height: 150px;?background-color:red;?transform: rotate(45deg);?}</style></head><body>? ?<div id="a"></div>? ?<input type="button" value="轉(zhuǎn)一圈" onclick="test()">? ?<script>function test(){//第一種document.getElementById("a").style.transform="rotete(0deg)"http://第二種ocument.getElementById("a").style.rotate="0deg"}? ?</script></body></html>
為什么這兩種方法都不行請問是哪里出錯了?
Echo_Chien
2016-09-05 17:41:04