操作流程如下:
代码如下:
<html>
<head>
<style type="text/css">
table, td, th
{
border:1px solid black;
border-collapse:collapse;
}
</style>
<script language="JavaScript">
function changColor()
{
document.getElementById("td1").style.backgroundColor="#FF9900";
}
</script>
</head>