删除特定数据表上的所有边框 [英] Remove all borders on a specific datatable

查看:141
本文介绍了删除特定数据表上的所有边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要隐藏一个数据表的所有边界,而不是所有,使用PrimeFaces。我试过很多事情,没有人工作。

I need to hide all borders of one datatable, not all, using PrimeFaces. I have tried many things and no one has worked. Does anyone know how to do it?

我已将以下样式(单独)应用于 ui-datatable class:

I have applied the following styles (separately) to the ui-datatable class:

border: hidden !important;    
border-style: none !important;

还有一些...

推荐答案

假设PrimeFaces 3.5数据表标记如下,

Assuming a PrimeFaces 3.5 data table which is marked up as follows,

<p:dataTable ... styleClass="borderless">

那么这种风格应该:

.ui-datatable.borderless thead th,
.ui-datatable.borderless tbody,
.ui-datatable.borderless tbody tr,
.ui-datatable.borderless tbody td {
    border-style: none;
}

这篇关于删除特定数据表上的所有边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆