-2

有没有办法在 IE 框架集中显示圆角?这是一个例子:

索引.html:

<html>
<head><title></title></head>
<frameset rows="*,64" style="margin:0; padding: 0;"  framespacing="0">
    <frame name="main" src="test.html" frameborder="0" border="0"  framespacing="0" marginwidth="0" />
    <frame name="header" scrolling="no" noresize target="main" src="template.html"  framespacing="0" />
</frameset>
</html>

和 test.html:

<html>
<head><title></title>

<style>
.listing td {
    -moz-border-radius: 14px;
    border-radius: 14px;

}
</style>
</head>
<body>
<table class="listing">
<tr>
<td>rounded corner not work in frame!</td>
</tr>
</table>
</body>
</html>

查看 test.html,然后查看 index.html。它不适用于框架!(IE9)

不要告诉我不要使用框架或等等等等。我应该使用它并且不希望使用 div 解决方案。这是一个演示页面,需要框架集。

4

1 回答 1

1

确保您为每个文件设置了一个文档类型。

<!doctype html>

您的页面在没有 doctype 的情况下以 quirksmode 呈现,使用 doctype 他们将在 IE 9 模式下呈现并且应该显示圆角

于 2012-12-17T19:10:44.023 回答