10/03/30 01:44:04 75e9y+rn0
>>863
レスありがとうございます!
すみません、教えていただいた事を試すのに少し格闘していて、返事が遅くなりました。
下の通り無事できました。
夜遅くにレスいただき、どうもありがとうございました。
var temp = document.evaluate('//div[contains(@style, "top")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
//var temp = document.evaluate('//div[@class="title" and contains(@style, "top")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0, L = temp.snapshotLength; i < L; i++)
{
temp.snapshotItem(i).style.top = (parseInt(temp.snapshotItem(i).style.top) - 20) + "px";
}
難しい・・・。(・ω´・;)