试试这样可行吗: content = driver.find_element_by_css_selector("[id='layui-layer1']") content.find_element_by_css_selector('dd:nth-child(3)').click()