[英]CSS Div border shows up even if hidden
I'm currently trying to reproduce a candle effect on a webpage. 我目前正在尝试在网页上重现烛光效果。 Here's the result : https://jsfiddle.net/Zenoo0/z9nejmn3/
结果如下: https : //jsfiddle.net/Zenoo0/z9nejmn3/
HTML HTML
<div id="light"></div>
CSS CSS
#light {
top: 50%;
left: 50%;
width: 50px;
height: 50px;
border-radius: 50%;
border: none;
position: absolute;
background-color: rgba(255, 165, 0, 0.5);
-webkit-box-shadow: 0 0 52px 52px rgba(255, 165, 0, 0.5);
-moz-box-shadow: 0 0 52px 52px rgba(255, 165, 0, 0.5);
box-shadow: 0 0 52px 52px rgba(255, 165, 0, 0.5);
animation-name: lightFlicker;
animation-duration:3ms;
animation-delay:200ms;
animation-timing-function: ease-in;
animation-iteration-count: infinite;
animation-direction: alternate;
z-index: 10;
}
As you can see, my background light still has a little border, even though I previously set it to none. 如您所见,即使我之前未将其设置为背景光,我的背景光仍然带有少许边框。 I can't seem to figure out how to remove it.
我似乎无法弄清楚如何删除它。
Thanks. 谢谢。
已添加到#light
CSS filter: blur(4px);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.