0
我需要帮助我的HTML工作。我对JavaScript非常陌生,我有一项工作要求我“点击更改我们的有序列表中的文本颜色,以更改为随机颜色。”改变点击颜色为随机颜色的文本颜色(按钮)
需要更改的段落是id=p1
,到目前为止,我的一切是
<script>
// Random Colors
function randomColors() {
}
</script>
和
<div>
<button type="button" id="b1" class="button" onclick="randomColors()">Button 1</button>
</div>
我知道这是简单的 但我爱你 – Anthony 2015-03-30 22:08:28