JavaScript DOM改变CSS
改变html样式
例子:
document.getElementById("p2").style.color="blue";//字体颜色
document.getElementById("p2").style.fontFamily="Arial";//字体
document.getElementById("p2").style.fontSize="40px";//字体大小
document.getElementById("p2").style.visibility="hidden";//隐藏
document.getElementById("p2").style.visibility="hidden";//显示