【发布时间】:2012-07-17 13:34:40
【问题描述】:
<style>
border-radius:10px;
</style>
<div class='radius'> <?= echo $score . 'score';?></div>
IE8 不支持
【问题讨论】:
-
CSS - border-radius help 的可能重复项
标签: html internet-explorer css
<style>
border-radius:10px;
</style>
<div class='radius'> <?= echo $score . 'score';?></div>
IE8 不支持
【问题讨论】:
标签: html internet-explorer css
Internet Explorer 6-8 不支持 Border-Radius,在 IE 9 中使用border-radius:10px。
它可以与 Jquery 或PIE CSS 一起使用
在HTML中添加jquery.js和jquery.corner.js:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="http://malsup.github.com/jquery.corner.js"></script>
Javascript
$('.radius').corner();
对于边框半径:10px 使用
$('.radius').corner("10px");
【讨论】:
It is not supported in IE8。如果你想让它在 IE8 中工作,你需要use a hack。
【讨论】:
IE 9 之前不支持它。您需要使用类似PIE CSS 的东西。这将要求您在您的网站中添加一个 htc 文件,您的 css 将如下所示:
.radius {
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
border-radius: 8px;
behavior: url(/PIE.htc);
}
【讨论】:
border-radius 是一个 CSS3 属性,IE8 不支持它(IE8 以下的任何东西都不支持它)。
不过,有一个名为 css3pie 的出色脚本增加了对 IE8 的支持。
【讨论】: