0
嘿,我知道如何使彩虹的背景下,很容易如何改變顏色形狀?
<html>
<center>
<head>
<style>
body {
background-color: red;
transition: background-color 5s;
}
</style>
</head>
<body>
<script type="text/javascript">
var colors = ["red", "orange", "yellow", "green", "blue", "indigo", "violet"];
var i = 1;
window.setInterval(function(){
document.body.style.backgroundColor = colors[i];
i++;
if (i === colors.length){
i=0;
}
}, 5000);
</script>
</body>
</center>
</html>
但你知道如何使例如使用此代碼改變顏色圓圈或其他形狀? 謝謝。
Yay thanks bruh –