2 changed files with 79 additions and 10 deletions
@ -0,0 +1,63 @@ |
|||
for (var i = 0; i < document.getElementsByClassName("_3glhOBhU").length; i++) { |
|||
if (document.getElementsByClassName("_3glhOBhU")[i] != undefined) { |
|||
document.getElementsByClassName("_3glhOBhU")[i].style = "width: 200px; margin-right: 0.03rem; margin-bottom: 0.03rem;float:left;"; |
|||
|
|||
if (document.getElementsByClassName("_3glhOBhU")[i].children[0].children[0] != undefined) { |
|||
|
|||
var maindiv = document.getElementsByClassName("_3glhOBhU")[i].children[0].children[0]; |
|||
|
|||
maindiv.style = "width:200px;height:280px"; |
|||
|
|||
if (maindiv.children[0].children[0] != undefined) { |
|||
maindiv.children[0].children[0].style = "width:200px;height:200px"; |
|||
|
|||
maindiv.children[0].children[0].children[0].style = "width:200px;height:200px"; |
|||
} |
|||
|
|||
|
|||
|
|||
var itemInfoDiv = maindiv.children[1] |
|||
if (itemInfoDiv != undefined) { |
|||
itemInfoDiv.style = "padding: 0px;" |
|||
|
|||
//标题
|
|||
if (itemInfoDiv.children[0] != undefined) { |
|||
itemInfoDiv.children[0].style = "font-size: 10px; line-height: 15px;"; |
|||
|
|||
var imgs = itemInfoDiv.children[0].getElementsByTagName("img"); |
|||
if (imgs != undefined && imgs.length > 0) { |
|||
for (var imgi = 0; imgi < imgs.length; imgi++) { |
|||
imgs[imgi].style = "height:10px;top:0.01rem" |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
var spans = itemInfoDiv.children[0].getElementsByTagName("span"); |
|||
for (var spi = 0; spi < spans.length; spi++) { |
|||
spans[spi].style = "display:none" |
|||
} |
|||
} |
|||
|
|||
if (itemInfoDiv.children[1] != undefined) { |
|||
itemInfoDiv.children[1].style = "padding:0px;margin:0px"; |
|||
var iconList = itemInfoDiv.children[1].children; |
|||
for (var si = 0; si < iconList.length; si++) { |
|||
var iconDiv = iconList[si] |
|||
for (var t = 0; t < iconDiv.children.length; t++) { |
|||
iconDiv.children[t].style.fontSize = "10px"; |
|||
iconDiv.children[t].style.lineHeight = "15px"; |
|||
} |
|||
imgs = iconDiv.getElementsByTagName("img") |
|||
if (imgs != undefined && imgs.length > 0) { |
|||
for (var imgi = 0; imgi < imgs.length; imgi++) { |
|||
imgs[imgi].style = "width:10px;height:10px;position:relative;top:1px;margin-right:5px" |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
} |
Loading…
Reference in new issue