tijiao
This commit is contained in:
@@ -184,6 +184,18 @@ function side_list() {
|
||||
var corr = result.data.relats;
|
||||
$('.jour_correlate>a').attr('href', '/' + corr[0].usx);
|
||||
$('.jour_correlate>a>img').attr('src', imgjourUrl + corr[0].icon)
|
||||
}else{
|
||||
$('.jour_correlate').css('display', 'none')
|
||||
const parent = document.querySelector('.jour_notice');
|
||||
if (parent) {
|
||||
// 找父容器下第一个符合样式特征的div(只取第一个)
|
||||
const firstTargetDiv = parent.querySelector('div[style*="height: 1px"][style*="background-color: #ddd"]');
|
||||
if (firstTargetDiv) {
|
||||
firstTargetDiv.style.display = 'none';
|
||||
console.log('已隐藏第一个目标分割线');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 感谢图片
|
||||
|
||||
Reference in New Issue
Block a user