I need to select all div
s which contain object
as their direct child. :has
just checks for descendants of any kind, so now I'm using:
$('div > object').parent().css('text-align', 'center');
is there a more direct way?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…