使用频率 | 低 |
所属模块 | Std.css.pseudos |
成员类型 | 静态成员函数 |
伪类方法 nth-last-child 与 nth-child 用法相同,唯一区别是nth-child是从前面往后的,nth-last-child是从后面往前的
Boolean Std.css.pseudo["nth-last-child"](Object element,String nth);
Boolean Std.css.pseudo["nth-last-child"](Object element,Number index);
名称 | 类型 | 描述 |
element | Object | DOM元素 |
nth | String | nth公式或者指定类型,如even,odd |
index | Number | 指定的索引值 |