html - Select specific td's with no id or classes -
i have got table 3 rows , 3 table data cells.
select first tr, first td, , b tags it:
tr + td b {}
select second tr, second td, , b tags it:
tr+tr > td+td b {}
i trying select them without nth-child
because ie8 , earlier don't support it.
can fix selectors me, because think i'm doing wrong , it's not selecting them properly.
to make nth-child work in ie8, use like:
tr:first-child+tr -> tr:nth-child(2) tr:first-child+tr+tr -> tr:nth-child(3)
select first
tr
, firsttd
, ,b
tags it:
tr:first-child td:first-child b {}
select second
tr
, secondtd
, ,b
tags it:
tr:first-child+tr td:first-child+td b {}
or can use js utility selectivizr.
Comments
Post a Comment