IE8 - 按 F11 时,Quirks 模式下表格不透明度丢失
我有一个 jsp 网页,其中我需要调暗 iframe 内的表格,我成功调暗表格,但是当按下 F11 时,表格不透明度会丢失。
我需要一个解决方法,因为重写整个页面需要时间。我有数百个 jsp 页面,它们具有 iframe,并且仅处于怪异模式。
这是重现问题的等效 html
MAIN PAGE
<html>
<head></head>
<body>
<table width=100% height=100%>
<tr>
<td>
<iframe src="\test2.html" width=100% height=100%>
</iframe>
</td>
</tr>
</table>
</body>
</html>
MAIN PAGE
CALLED PAGE
<html>
<head>
</head>
<body>
<table width=100% height=100%>
<tr>
<td>
<table width=100% style="background-color :gray; filter:alpha(opacity=30);">
<tr>
<td height="500" width ="500">
<p>TESTING</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
END CALLED PAGE PAGE
END OF 将不胜感激。
I have a jsp webpage wherein I need to Dim a table inside an iframe, I successfully dim the table but when F11 is pressed the table opacity is lost.
I need a workaround on this because rewriting the whole page will take time. I have hundreds of jsp pages that has iframes and only in quirks mode.
Here is the equivalent html that reproduces the problem
MAIN PAGE
<html>
<head></head>
<body>
<table width=100% height=100%>
<tr>
<td>
<iframe src="\test2.html" width=100% height=100%>
</iframe>
</td>
</tr>
</table>
</body>
</html>
END OF MAIN PAGE
CALLED PAGE
<html>
<head>
</head>
<body>
<table width=100% height=100%>
<tr>
<td>
<table width=100% style="background-color :gray; filter:alpha(opacity=30);">
<tr>
<td height="500" width ="500">
<p>TESTING</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
END CALLED PAGE PAGE
Replies will be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定这是否可以解决问题,但您可以尝试强制渲染模式,以便保持视图之间的一致性。
http://www.456bereastreet.com/archive/201103/x-ua- Compatible_and_html5/
可能是浏览器中过滤器不透明度的问题。您使用什么浏览器和版本?
在 IE8 上试试这个。来自 http://www.quirksmode.org/css/opacity.html
Not sure if this will solve the issue, but you can try to force the rendering mode so that you maintain consistency across views.
http://www.456bereastreet.com/archive/201103/x-ua-compatible_and_html5/
Could be an issue with the filter opacity in the browser. What browser and version are you working with?
Try this for IE8. From http://www.quirksmode.org/css/opacity.html