chenghu
    <script type="text/javascript">
        $(document).ready(function () {
            $("table").attr("bgColor", "#222222"); //设置表格的背景颜色   
            $("tr").attr("bgColor", "#3366CC"); //为单数行表格设置背景颜色   
            $("tr:even").css("background-color", "#CC0000"); //为双数行表格设置背颜色素  
            $("table").css("width", "300px"); //为表格添加样式,设置表格长度为300像素  
        });
    </script>

 

分类:

技术点:

相关文章:

  • 2021-11-08
  • 2021-11-13
  • 2022-12-23
  • 2021-09-27
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-30
  • 2021-12-12
  • 2021-11-04
  • 2021-09-18
相关资源
相似解决方案