css定义table属性
页面内有两个table 
 其中一个table   A背景颜色为桔红色   tr属性为白色      边距为1 
 另外一个table   B的颜色不管。   
 table   A    
  <table   width= "100% "      border= "0 "   cellpadding= "0 "   cellspacing= "1 "   id= "table1 "   bgcolor:#FF9900;>  
  <tr   bgcolor= "#FFFFFF ">    
 因为tr太多   并且是从多个函数调用的   所以我想写成 
 #table1{   background-color:#FF9900;} 
 tr{   background-color:#FFFFFF} 
 但是这样一来table   B   的tr背景颜色也是白色的了。请问各位达人如何解决阿。
------解决方案--------------------#table1 { background-color:#FF9900;} 
 #table1 tr { background-color:#FFFFFF;} 
------解决方案--------------------#是id选择符 
 .是class选择符 
 #table1 tr代表的是id为table1的element下的tr的样式
------解决方案--------------------#table1.XX代表的是id为table1元素内的class= "XX "的元素的样式