css selects the first to second to last element_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:26:39
Original
2758 people have browsed it

css ie8

I now want to set the height of tr. There are 9 trs. How can I use css to select the first eight and set them to height: 90px; and set the last one to 40px?
It is required to be compatible with at least ie8

Reply to discussion (solution)

$("tr").css("height","90px");$("tr:last").css("height","40px");
Copy after login

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template