如何通过脚本隐藏按钮-在iframe内部 [英] How to hide the button by script -inside iframe

查看:101
本文介绍了如何通过脚本隐藏按钮-在iframe内部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好需要编写脚本来隐藏按钮.如果我们编写display,请使用按钮ID:none不能正常工作,因为它在iframe下是有效的.一些有用的指针会有所帮助.

Hi need to write a script to hide a button. Using the button id if we write display: none it does not work as it is under iframe. Some useful pointers will be helpful.

图像狂

需要隐藏由提供商托管的应用程序部署的新请求按钮.

need to hide new request button which is deployed by provider hosted App.

sudhanshu sharma做得好,扔进河里:)

sudhanshu sharma Do good and cast it into river :)

推荐答案

如果要在加载项页面中隐藏按钮,建议您将CSS样式添加到加载项页面中.

If you want to hide the button in add-in page, I suggest you add the CSS style into add-in page to achieve it.

<style>
#BtnNewForm{
	display:none;
}
</style>

最好的问候,

丹尼斯


这篇关于如何通过脚本隐藏按钮-在iframe内部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆