zoukankan      html  css  js  c++  java
  • jquery实现无外边框table

    jquery实现无外边框table

    1. 在需要设为无外边框的table上加上class noOutBorder
      1. <tableclass="noOutBorder">
        <tr>
        <td>1/td>
        </tr>
        </table>
        <tableclass="otherClassName noOutBorder">
        <tr>
        <td>1/td>
        </tr>
        </table>

    2.在页面初始化脚本中添加

        

    $jq(document).ready(function(){
        initTabNoOutBorder();
    });
    function initTabNoOutBorder(){
        $jq("table .noOutBorder tr:first-child td").css("border-top","0 none");
        $jq("table .noOutBorder tr td:first-child").css("border-left","0 none");
        $jq("table .noOutBorder tr td:last-child").css("border-right","0 none");
        $jq("table .noOutBorder tr:last-child td").css("border-bottom","0 none");
    }





  • 相关阅读:
    WPF基础篇之静态资源和动态资源
    15-Node-数据库
    15-Node
    12-Git
    总-S04-03 项目-大事件
    00-PHP难点
    08-PHP基础
    15-ES6
    16-Vue-webpack
    00-Web难点
  • 原文地址:https://www.cnblogs.com/juforg/p/3980889.html
Copyright © 2011-2022 走看看