谁能告诉我如何从
元素中具有特定内容的元素接收项目索引?
我的项目看起来像这样:
<div class="item"><img style="position: relative; top: 80px; left: 0px; z-index: 7; width: 27px; height: 27px; opacity: 1!important;" src="someurl" /><img class="thumbimg" style="position: absolute; top: 12px; width: 100%; height: 136px;" src="<?php echo wp_get_attachment_url(get_post_thumbnail_id()) ?>" /><p style="position: relative; top: -25px;"><?php echo get_the_title() ?></p></div>