日期:2014-05-16  浏览次数:20628 次

求问这种毛边效果用css怎样做出来?
如下图所示,google public data的图线,当鼠标移动到圆圈上方时,圆圈内圈变为白色,可是外圈周围css用毛边效果亮高,请问这个毛边效果如何实现呢?




------解决方案--------------------
模拟的呗。

试试看代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<style>
#circle{ width:100px; height:100px; border-radius:50px;-moz-border-radius: 50px;-webkit-border-radius: 50px;background-color:#09F; float:left; margin:0 0 0 10px;border:2px solid #09F;}
#circle:hover{border:2px solid #fff;box-shadow:0 0 5px #09a;}
</style>
</head>
<body>
<div id="circle"></div>
</body>
</html>