将Transperancy设置为模态弹出窗口内的iFrame
我在后台显示一个pdf,顶部有一个Popup,其中包含一个iFrame,我想为弹出窗口设置透明度。 它在Chrome浏览器和浏览器的其余部分完美无效:(这里是Fiddler链接: 点击这里
请告诉我如何在所有浏览器中工作。
使用一点点javascript和CSS这应该不是什么大问题,虽然iframe需要包含在div中,或者其他事情:
然后在你的javascript中:
// Set the css opacity of the div NOT the iframe: iframeContainer.style.opacity = 0.5; // the closer to 1 the less transparent iframeContainer.style.MozOpacity=0.5; // the closer to 1 the less transparent iframeContainer.style.filters.alpha.opacity=50; // the closer to 100 the less transparent
- 为什么我需要使用.d来访问jQuery AJAX返回的数据?
- jquery在asp.net中使用锚点提交函数问题 – >我们添加了runat =“server”来锚定
- 使用ASP.net MVC4中的Modal弹出窗口添加/编辑/删除
- 在每个对象上设置ClientIDMode = Static是否有任何缺点(在主页的maincontent上设置)
- asp.net webforms ajax update gridview
- 防止回发失败:isValid =“undefined”
- jQuery Dialog-Postback但UpdatePanel没有更新
- jQueryvalidation – 一个asp.net表单上的多个提交按钮,不同的validation组?
- Ajax Calender Extender无法在Asp.net Web应用程序中运行