美文网首页
选择多个子元素

选择多个子元素

作者: 自you是敏感词 | 来源:发表于2018-03-23 13:58 被阅读0次

    选择 table 的 th 和td 不能写成:

    table th, td{
    }
    

    必须写成

    table th, table td{
    }
    

    第一种写法相当于

    table th{
    }
    td{
    }
    

    相关文章

      网友评论

          本文标题:选择多个子元素

          本文链接:https://www.haomeiwen.com/subject/mlqxcftx.html