变化元件通过标签的名字,我想从风格改变URL(HERF)。检查它如何使用JavaScript从IFRAME
<iframe src="https://www.website.com/............" heght="100%" width="100%" >
#document
<!DOCTYPE html>
<html>
<head></head>
<body>
<a class="class" href="https://www.website.com/-----" style="background: url("https://www.website.com/abc.png") center center/100% no-repeat; width: 110px; height: 26px;"></a>
</body>
</html>
<iframe>
我想改变形象的网址与JavaScript
: style="background: url("https://www.website.com/abc.png")
与另一个网址。
像重要的是
: style="background: url("https://www.website.com/xyz.png")
图像xyz.png改变。
何时这种变化发生的呢?你试过的代码在哪里?的[什么querySelectorAll,getElementsByClassName方法等...返回](https://stackoverflow.com/questions/10693845/what-do-queryselectorall-getelementsbyclassname-and-other-getelementsby-method) – Teemu