我试图更改 iframe 中内容的 css。即我需要隐藏<img>
元素。但我不能改变..这是示例代码:
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<iframe src="http://www.carsales.com.au/pls/carsales/!dealer_content.welcome?dealer_id=10978" width="80%" height="600" id='frameDemo'></iframe>
<script>
$("#frameDemo").contents().find("img").css("display", "none");
</script>
</body>
</html>
请帮我
亲切的问候鸟吉娜