<div class="codetitle"> <span><a style="CURSOR: pointer" data="12394" class="copybut" id="copybut12394" onclick="doCopy('code12394')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code12394"> <br>if($(window.frames["iframepage"].document).find('.l-grid-row-cell').length > 0){ <br> alert(1);<br>}else{<br> alert(2);<br>}<br> </div> <br>判断id为iframepage的iframe中css为1-grid-row-cell的元素是否存在