StyleSheet.css 874 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #scrollTable {
  2. width:701px;
  3. border: 1px solid #EB8;/*table没有外围的border,只有内部的td或th有border*/
  4. background: #FF8C00;
  5. }
  6. #scrollTable table {
  7. border-collapse:collapse; /*统一设置两个table为细线表格*/
  8. }
  9. #scrollTable table.thead{ /*表头*/
  10. /*div的第一个子元素*/
  11. width:100%;
  12. }
  13. #scrollTable table.thead th{/*表头*/
  14. border: 1px solid #EB8;
  15. border-right:#C96;
  16. color:#fff;
  17. background: #FF8C00;/*亮桔黄色*/
  18. }
  19. #scrollTable div{/*能带滚动条的表身*/
  20. /*div的第二个子元素*/
  21. width:100%;
  22. height:200px;
  23. overflow:auto;/*必需*/
  24. }
  25. #scrollTable table.tbody{/*能带滚动条的表身的正体*/
  26. width:100%;
  27. border: 1px solid #C96;
  28. border-right:#B74;
  29. color:#666666;
  30. background: #ECE9D8;
  31. }
  32. #scrollTable table.tbody td{/*能带滚动条的表身的格子*/
  33. border:1px solid #C96;
  34. }