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