zoukankan      html  css  js  c++  java
  • php29号小结(隔行换色······)

    1.给表单加样式,可以用css、php与js、js这三种,其中最好用php与js,现在很推广用这种。

    css3样式隔行换色(table中)

      tr:nth-child(even){     
    background: #cad9ea;
    }

     php与js隔行换色(table中)

           

     function changeColor(){         
    var trs = document.getElementsByTagName("tr");
    for(var i=0;i<trs.length;i++){
          if( i%2 == 0){
             trs[i].style.background="#cad9ea";
    }
    }
    } window.onload=changeColor;

    2.隐藏域

    <input type="hidden">
    

    3.location href="  "调到当前选中页面

    4.mysql_num_rows取得结果集中行的数目

    5.intval把小数转化为整数

    6.limit 1,3    第一个参数是从第几行开始,第二个参数是显示几条

  • 相关阅读:
    @bzoj
    @bzoj
    @codeforces
    @codeforces
    @bzoj
    @codeforces
    @codeforces
    @codeforces
    @NOIP2018
    反转字符串--C和Python
  • 原文地址:https://www.cnblogs.com/5huihui/p/3700214.html
Copyright © 2011-2022 走看看