我在saleforce页面上有一个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/

10-10 22:13
查看更多