IE9:舍入在帧刷新时消失
我有一个网站,每个页面都包含几个框架。我最近开始使用 IE9,我添加的第一件事是向我的圆形元素添加 ccs3 边框半径。
我注意到的一件事是,当一个帧上发生导致不同帧刷新的特定操作时,刷新的帧舍入元素不再舍入。
我能够刷新每个框架并删除元素上的所有舍入,但我很困惑。
在我继续研究这个问题时寻找任何意见。
谢谢
~ 编辑:我很快就准备好了一个例子。运行它并刷新一帧,您就会明白我的观点。
<!DOCTYPE html>
<html>
<frameset cols="50%, *">
<frame src="exampe.html"/>
<frame src="exampe.html"/>
</frameset>
</html>
example.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.okayDiv
{
background-color:red;
margin:10px;
padding:10px;
border-style: solid;
border-width: 2px;
border-radius: 15px 15px 15px 15px;
width:100px;
height:100px;
}
</style>
</head>
<body>
<div class="okayDiv">okay</div>
</body>
</html>
Edit2:我还想指出,iframe 也会发生这种情况
I have a website where each page contains a few frames. I recently started to work with IE9, and the first thing I added was the ccs3 border-radius to my rounded elements.
One thing I noticed is when a particular action occurs on one frame that causes a different frame to refresh, the refreshed frames rounding elements are no longer rounded.
I was able to refresh each frame and remove all rounding on the elements and I am quite confused.
Looking for any input as I continue to research this problem.
Thanks,
~
Edit: An example I rigged up real quick. Run it and refresh one frame and you'll see my point.
<!DOCTYPE html>
<html>
<frameset cols="50%, *">
<frame src="exampe.html"/>
<frame src="exampe.html"/>
</frameset>
</html>
exampe.html
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
.okayDiv
{
background-color:red;
margin:10px;
padding:10px;
border-style: solid;
border-width: 2px;
border-radius: 15px 15px 15px 15px;
width:100px;
height:100px;
}
</style>
</head>
<body>
<div class="okayDiv">okay</div>
</body>
</html>
Edit2: I would also like to note that this occurs with iframes as well
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我做了更多研究,这显然是由“设计”完成的
https://connect.microsoft.com/IE/feedback/details/620502/manually-refreshing-an-iframe-causes-its-document-mode-to-change
叹息...
I did some more research and this is apparently done by 'design'
https://connect.microsoft.com/IE/feedback/details/620502/manually-refreshing-an-iframe-causes-its-document-mode-to-change
https://connect.microsoft.com/IE/feedback/details/599022/canvas-element-unknown-in-iframe-if-no-doctype-on-parent-page-ie9p5
sigh...
首先,您不应该再使用框架,因为它们很难在移动设备上导航。
其次,它看起来像是一个浏览器错误。我认为你不应该在(预)测试版中为浏览器开发任何东西。
Well first of all, you shouldn't use frames anymore as they are hard to navigate around on mobile devices.
Secondly, it looks like a browser bug. I think you shouldn't be developing anything for a browser in (pre) beta.