我的 salesforce 页面上有一个 iframe,我需要在 iframe 内禁用鼠标单击。这可能吗?
这是我的代码
<apex:page id="peprtgdash">
<apex:form >
<iframe height="900px" id="pedash" name="pedash" src="http://www.site.com" width="100%" scrolling="false"></iframe>
</apex:form>
</apex:page>
site.com 不是实际的 src,它只是我放入的内容,以免我的信息泄露出去。
最佳答案
试试这个:
<apex:page id="peprtgdash">
<apex:form >
<div id="wrapper" style="position: relative;">
<div id="block" style="position: absolute; top: 0; left: 0; width: 100%; height: 900px"></div>
<iframe height="900px" id="pedash" name="pedash" src="http://www.site.com" width="100%" scrolling="false"></iframe>
</div>
</apex:form>
</apex:page>
关于javascript - 如何在 salesforce 的 iframe 内禁用鼠标单击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22184947/