excelStyle.css 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. table,tr,td,th{
  2. border:1px solid black;
  3. border-collapse:collapse;
  4. }
  5. table{
  6. width:100%;
  7. table-layout: fixed;
  8. text-align:center
  9. }
  10. td{
  11. height:24px;
  12. width:200px;/** 固定单元格宽度,防止分离表头后,表头与数据行错位(缺点) */
  13. line-height:24px;
  14. padding:3px 5px;
  15. word-break:break-all;/** 设置当文本过长时换行 */
  16. /*white-space:nowrap; /*文本显示不自动换行*/
  17. /* overflow: hidden;*/
  18. }
  19. th{
  20. height:24px;
  21. width:200px;/** 不管是固定像素或是百分比,应与对应数据列的宽度一致 */
  22. line-height:24px;
  23. white-space:nowrap;
  24. overflow:hidden;
  25. }
  26. div{
  27. position:absolute;
  28. left:0px;
  29. top:30px;
  30. overflow:auto;
  31. width:100%;
  32. height:100%
  33. }
  34. input{
  35. left:0px;
  36. top:0px
  37. }