我在哪打开灯箱其HREF链接如何使用jquery/mootools在iframe中添加“滚动=否”?
<a class="modal" rel="{handler: 'iframe', size: {x: 500, y: 400}}" href="http://localhost/site/index.php">Site</a>
。我想从iframe中删除卷轴,我发现这个'"scorlling=no"'。我找不到在iframe中添加此属性的方法。 我想这
jQuery(document).ready(function($) {
$(".modal").click(function() {
$("#sbox-content iframe").attr("scrolling","no")
});
});
但它不工作。 这是可能的,或者最好的办法是做到这一点?
谢谢。
谢谢这是工作。但有一件事我想知道我们可以从我们这边做一些事情,而不添加任何东西在localhost/site/index.php – Irfan
请参阅我的更新.. – techfoobar
这不适用于chrome.http:// stackoverflow.com/a/9678294/902161我想这样做,我们必须将其添加到localhost/site/index.php,因为这是工作。 – Irfan