document.getElementById(id).style.property=new style
javascript css align
align
object.style.textAlign="right" ,left, center, justify, initial
document.getElementById(this.id).style.textAlign="right";
color
document.getElementById("p2").style.color="blue";
沒有留言:
張貼留言