带空格的单元格填充

Cellpadding with spaces

如何删除每行中的 space?我已经试过了 padding: 0; 还是不行。但是如果我点击切换按钮,它不会显示 space。看看jsFiddle

使用 padding 的不是 table 单元格,但根据 input[class="squaredTwo"] 的这条规则,您的复选框在它们上面有边距,所以摆脱 margin: 20px auto; 或你可以做到 margin: 5px auto;

input[class="squaredTwo"] {
    /* Other declared properties */
    margin: 5px auto; /* Change here from 20 to 5 or whatever you like */
}

Demo

margin: 5px auto;margin-topmargin-bottom 的 shorthand 属性 所以当你写的时候它意味着 5px 对于 margin-top5px 对于 margin-bottom

试试这个

input[class="squaredTwo"]{margin:0}