zoukankan      html  css  js  c++  java
  • JS更改字体颜色、背景颜色

    CSS 颜色十六进制值  http://www.w3school.com.cn/cssref/css_colorsfull.asp 

    CSS background-color 属性   

    body
      {
      background-color:yellow;
      }
    h1
      {
      background-color:#00ff00;
      }
    p
      {
      background-color:rgb(255,0,255);
      }


    $("body").css("background-color","#000");
    $("#yz").css("background-color","#F5FFFA");
    $("#Fdrendegeren").css("background-color","#000");

    $("#rendegeren").find("thead").find("tr").each(
    function(){
    $(this).css("background-color","#000");
    $(this).find("th").each(
    function(){
    $(this).css("color","green");
    $(this).css("fontSize", "30px");
    $(this).css("lineHeight", "60px");
    }
    )
    }

  • 相关阅读:
    地铁开发进度1
    人月神话阅读笔记二
    学习进度五
    人月神话阅读笔记一
    WebView的用法:
    图框联动
    阅读笔记《人月神话》一
    5
    4
    3
  • 原文地址:https://www.cnblogs.com/gq0324/p/6549619.html
Copyright © 2011-2022 走看看