作者:静雨2502874293 | 来源:互联网 | 2022-12-17 13:07
如何将css内容属性设置为表行和第一个子值的动态值?
我的表格html:
CollegeName1 | .....
CollegeName2 | .....
CollegeName3 | .....
CSS:
.cTable td:nth-of-type(1):before {
content: "Institute Name";
}
patelarpan..
6
你可以用attr
表达式.
.cTable td:nth-of-type(1):before {
content: attr(data-name);
}
CollegeName1 |
CollegeName2 |
CollegeName3 |
1> patelarpan..:
你可以用attr
表达式.
.cTable td:nth-of-type(1):before {
content: attr(data-name);
}
CollegeName1 |
CollegeName2 |
CollegeName3 |