Javascript 调整不同表格中的制表器行高度

Javascript 调整不同表格中的制表器行高度,javascript,css,tabulator,Javascript,Css,Tabulator,我在同一页中有两个制表表表(#tableC id=“Cuentas”和#tableM id=“movimintos”),每个表的行高应该不同 我在CCS文件中尝试过 tableC.tabulator-row.tabulator-cell { height:40px;} tableM.tabulator-row.tabulator-cell { height:100px;} 及 及 和多个组合, 它们都不起作用 如果我写 .tabulator-row.tabulator-cell { hei

我在同一页中有两个制表表表(#tableC id=“Cuentas”和#tableM id=“movimintos”),每个表的行高应该不同

我在CCS文件中尝试过

tableC.tabulator-row.tabulator-cell { height:40px;} 
tableM.tabulator-row.tabulator-cell { height:100px;} 

和多个组合, 它们都不起作用

如果我写

.tabulator-row.tabulator-cell { height:40px;} 
if修复了第页中所有表的行高


如何为不同的表设置不同的行高

您需要在id选择器和类选择器之间添加一个空格

#Cuentas .tabulator-row { height:10px;} 
#Movimientos .tabulator-row { height:40px;}
工作示例:


请参阅:

您可以包含HTML吗?在
#Cuantas
之后是否有空格?在上面的代码中,CSS选择器似乎同时使用
#Cuantas
选择元素。制表器行
很乐意提供帮助,欢迎使用Stack Overflow。如果此答案或任何其他答案解决了您的问题,请将其标记为已接受。这样,使用搜索引擎找到问题的人可以更确信答案是正确的
.tabulator-row.tabulator-cell { height:40px;} 
#Cuentas .tabulator-row { height:10px;} 
#Movimientos .tabulator-row { height:40px;}