IE8 中的 CSS 圆 Angular

标签 css internet-explorer internet-explorer-8 rounded-corners

我在 IE8 中遇到圆 Angular 问题。我试过几种方法都没有成功。

这是我的代码:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Page</title>

<style>
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8em;
  padding: 2px;
  margin: 2px;
  color: #505050;
  line-height: normal;
}
p {
  margin: 4px;
}
.categoryheading3 {
  -moz-border-radius-topleft: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-left-radius: 5px;
  -webkit-border-top-right-radius: 5px;
  background-color: #297BB6;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
  margin: 0px;
}
.leftcolumn {
  width: 174px;
  padding: 8px;
  float: left;
  display: inline-block;
  background-color: transparent;
  /*--min-height: 500px*/
  overflow: hidden;
}
.lefttop {
  display: inline-block;
  width: inherit;
  margin: 0 5px 2em 0;
  float: left;
  width: 160px;
  background-color: #FFFFFF;
  border: 2px solid #297BB6;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}
</style>


</head>
<body>

<div class="leftcolumn">
  <div class="lefttop">
    <H4 class="categoryheading3">Heading</H4>
    <p>sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text sample text </p>
  </div>
</div>
</body>
</html>

在 Firefox 中产生这个:

firefox example

但是在 IE8 中是这样的:

IE8 makes me sad

如果有人有任何提示,我将不胜感激!

编辑:Joseph 通过建议使用 pie.htc 提供帮助,但我仍在为这个元素不起作用而苦苦挣扎:

.categoryheading3 {
  -moz-border-radius: 5px 5px 0 0;
  -webkit-border-radius: 5px 5px 0 0;
  behavior: url(PIE.htc);
  background-color: #297BB6;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 0;
  text-align: center;
  margin: 0px;
}

最佳答案

Internet Explorer(版本 9 以下)本身不支持圆 Angular 。

有一个很棒的脚本可以神奇地为您添加它:CSS3 PIE .

我用了很多次,效果非常好。

关于IE8 中的 CSS 圆 Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7077331/

相关文章:

css - HTML 页面中可折叠 div 的对齐方式

jquery - Internet Explorer 8 的布局/Javascript 问题

html - div 清除后 IE 中的额外垂直空间

html - 如何确保 CSS 反转的按钮间距均匀?

html - ie8 在第一页加载或刷新时不呈现@font-face 字体

html - 哪些具体的事情会导致 IE8 触发兼​​容模式?

html - CSS 文件未实现

html - 侧边栏实现允许过多的垂直滚动

html - 带有绝对子元素的 float 相对 div

javascript - 控制 &lt;input type ="file"> 的工作目录?