<div id = "test">test</div>
<input type = "button" name = "button1" value = "更改前景色" onclick = "test.style.color = 'red';">
<input type = "button" name = "button2" value = "更改背景色" onclick = "test.style.backgroundColor = 'green';">