Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 冻结WPdatatables中的标题行和列?_Wordpress - Fatal编程技术网

Wordpress 冻结WPdatatables中的标题行和列?

Wordpress 冻结WPdatatables中的标题行和列?,wordpress,Wordpress,我使用wpdatatable付费插件如果wordpress。 因此,在前端,它显示带有数据的表格。我想冻结表的标题行和第一列。要冻结列,需要向列设置中添加css类。在下面的示例中,我使用了名称“Firstcol” 您需要根据您的表格调整宽度、左边距和边距顶部 table.wpDataTable td.Firstcol { color:#ffffff; font-weight: bold; position: absolute; width: 10.5em; left: 0em;

我使用wpdatatable付费插件如果wordpress。
因此,在前端,它显示带有数据的表格。我想冻结表的标题行和第一列。

要冻结列,需要向列设置中添加css类。在下面的示例中,我使用了名称“Firstcol”

您需要根据您的表格调整宽度、左边距和边距顶部

table.wpDataTable td.Firstcol {   color:#ffffff;    font-weight: bold; position: absolute;   width: 10.5em;   left: 0em;   border-top-width: 1px;   /*only relevant for first row*/   margin-top: -0.75px; }