我在这个网站上有一堆带有以下来源的视频:
<li id="vidLink-1498229769" class="videoContainer vidLink">
<a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni">
<span class="content-video-thumb-hover"></span>
<img src="http://lockerz.vo.llnwd.net/o35/Lockerz/14/593/MEVIO-EmoGirlTV-SavesTheDay-TH1.jpg" id="clThumb_1498229769" class="videoThumb">
</a>
<a href="/p/watch/1498229769:GM1ryG4eoTA6sMZV9wtDEpocuehpzDni" class="videoTitle">Emo Girl TV - Saves the Day Interview</a>
<span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>
如果span类是那样,是否可以隐藏整个id(vidlink-***部分)?
<span class="PTZ-status PTZ-awarded">PTZ have been awarded for watching this video.</span>
我想隐藏我已经在该网站上看到的视频(使用油脂猴子),但是我不知道如何...
最佳答案
如果您试图隐藏整个vidLink
(如果它包含.PTZ-status
),则可以这样做:
$('.vidLink:has(.PTZ-awarded)').hide();