【发布时间】:2013-11-13 02:02:21
【问题描述】:
我有以下创建红色圆圈的 CSS(此处为 JS 小提琴:http://jsfiddle.net/47BDT/)
<div class="shadow-circle"></div>
.shadow-circle{
width:100px;
height:100px;
border-radius: 50%;
border: 6px solid red;
-moz-background-clip: content; /* Firefox 3.6 */
-webkit-background-clip: content; /* Safari 4? Chrome 6? */
background-clip: content-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
}
我想在圆圈周围添加一个 1 像素的蓝色边框(也是圆形边框)。我该怎么做呢?解决方案需要在 IE8 中运行。
【问题讨论】:
-
解决方案在 IE8 中不起作用,因为border-radius 在 IE8 中不起作用。