0

我使用以下方式删除了我的 primefaces panelgrid 组件的所有边框:

第一:

.table, table td {
    border-style: hidden !important;
}

另一个:

.table, table tr, table td {
    border: none !important;
}

边框和边框样式属性有什么区别?

4

2 回答 2

2

border是设置边框属性的简写符号。

详见:http ://www.w3.org/TR/css3-background/#the-border-shorthands

于 2013-09-19T15:05:33.713 回答
0

border-style定义边框的类型(或样式):实心、虚线、虚线、隐藏等。

border在一个定义中定义所有边框属性,因此它包括上述样式以及颜色和宽度,如下所示(属性顺序不重要): border: <width> <style> <color>;

于 2013-09-19T15:04:58.790 回答