javascript - 圆 Angular 在 IE 中不起作用(.rounded-corners)

标签 javascript css internet-explorer rounded-corners

我试图使用 border-radius.htc ( http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser ) 方法在 IE pn 以下网站中获得圆 Angular ,但它似乎不起作用。

当您将鼠标悬停在菜单上时,2 级子菜单应该有圆 Angular ,但事实并非如此 (IE8)。

在 HTML 源代码中搜索 .rounded-corners 以查看它的应用位置以及应该显示但没有显示的位置。

有人可以帮忙吗?

http://berrisford.gumpshen.com

.ie6 .rounded-corners, .ie7 .rounded-corners, .ie8 .rounded-corners, .ie9 .rounded-corners {
  behavior: url(border-radius.htc);
}

最佳答案

你不能只使用:

.ie6 .rounded-corners, .ie7 .rounded-corners, .ie8 .rounded-corners, .ie9 .rounded-corners {
  behavior: url(border-radius.htc);
  border-radius: 4px; /* example */
}

它还确保它也尝试使用 CSS 方法来解决问题。

关于javascript - 圆 Angular 在 IE 中不起作用(.rounded-corners),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6797536/

相关文章:

css - 如何从 Bulma 模态卡标题中删除关闭按钮?

javascript - 按钮-如何将一个按钮移到另一个按钮的右侧

javascript - 在 Internet Explorer 中避免此错误(和 document.write)的选项有哪些?

javascript - 你还考虑拨号连接吗?

javascript - 如何将对象放置在 Canvas 网格内

javascript - 如何让 require.context 在有/没有 Craco 的情况下与 Create React App 一起工作?

javascript - 使用 js 选择选择框(通过 angularjs 填充选择框)

html - 无法水平显示div内的div? (HTML, CSS)

javascript - 关于在 IE 代码上向现有日期添加 7 天

html - IE(所有版本)内容溢出时忽略高度