如何利用javascript语法设置标签的背景颜色,下面web建站小编给大家简单介绍一下!document.getElementById(‘mycss’).style.background = ‘#f00’。