表格效果

//表格的属性
$("#tbl").attr("border","1").attr("cellSpacing","0").attr("cellPadding","0").attr("borderColorDark","#ffffff").attr("borderColorLight","#909090");
$("#tbl").attr("bgColor","#d4e1e5").attr("colSpan","2");

$("#tbl").css({"font-size":"13px","line-height":"28px","width":"800px","margin":"20px 0 0 0","text-align":"center"}); //表格整体样式
$("#tbl tr:eq(0)").css({"font-size":"14px","font-weight":"bold","background":"#1C63B5"});                             //标题行样式
$("#tbl tr:odd").css({"background":"#f6f6f6"});                                                                       //交替效果

$("td:empty").text(" ");  //将空表格填充一个内容,防止表格垮掉

相关文章:

  • 2021-12-19
  • 2021-10-06
  • 2021-07-16
  • 2021-12-18
  • 2022-12-23
  • 2021-05-21
  • 2021-11-05
  • 2021-08-07
猜你喜欢
  • 2021-11-09
  • 2021-12-30
  • 2022-02-02
  • 2021-09-12
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
相关资源
相似解决方案