【发布时间】:2013-02-17 10:17:32
【问题描述】:
我的代码:
HTML:
<iframe src="http://lorempixel.com/400/400/" width="400" height="400"></iframe>
JS:
$("iframe[scr*='http://lorempixel.com/400/400/']").css("border", "3px solid blue");
Jsfiddle:
似乎可以通过其源属性选择 iframe。
在此先感谢您。
【问题讨论】:
-
[This][1] 应该回答您的问题。 [1]:stackoverflow.com/questions/3752857/jquery-select-img-with-src
标签: javascript jquery html jquery-selectors