1
我正在尝试使基本上是径向渐变的文本元素。我认为我可以通过取一个圆形的白色容器然后添加一个白色的盒子阴影来做到这一点,但阴影开始的颜色和div的背景颜色在chrome中不匹配,并且border-radius属性是在Firefox中造成奇怪的边框。背景与CSS阴影混合的问题
我喜欢一些投入,我创建了这个codepen,但这里是代码...
http://codepen.io/syren/pen/tcdBz
div.feature{
background:#000;
width:100%;
height: 300px;
}
div.text{
width: 300px;
height: 300px;
background: white;
padding: 130px 0 0;
-moz-box-sizing: border-box;
box-sizing: border-box;
border-radius: 160px;
text-align: center;
text-transform: uppercase;
font-weight: bold;
box-shadow: 0 0 50px 50px #fff;
margin: 0 auto;
}
谢谢!
尼斯的..在Firefox的边界。 。 好一个。 – 2013-02-21 23:59:12