:before的border-radius設(shè)置成50% 中間會(huì)有一圈白色邊框怎么解決??
:before的border-radius設(shè)置成50% 中間會(huì)有一圈白色邊框怎么解決??
#page1?>?.p1_lantern::before{ ????position:?absolute; ????top:?0; ????right:?0; ????bottom:?0; ????left:?0; ????z-index:?-1; ????content:?""; ????margin:?auto; ????width:?30vw; ????height:?30vw; ????background:?#d60b3d; ????opacity:?0.5; ????border-radius:?50%; ????-webkit-box-shadow:?0?0?10vw?10vw?#d60b3d; ????-moz-box-shadow:?0?0?10vw?10vw?#d60b3d; ????-ms-box-shadow:?0?0?10vw?10vw?#d60b3d; ????-o-box-shadow:?0?0?10vw?10vw?#d60b3d; ????box-shadow:?0?0?10vw?10vw?#d60b3d; ????-webkit-animation:?p1_lantern?0.5s?infinite?alternate; ????animation:?p1_lantern?0.5s?infinite?alternate; }
2017-07-11
我也遇到這個(gè)問(wèn)題,請(qǐng)問(wèn)樓主是怎么解決這個(gè)問(wèn)題的
2016-10-22
你的.p1_lantern::before是不是打錯(cuò)了,多了一個(gè)分號(hào)
2016-07-07
按理來(lái)說(shuō)是不會(huì)有的,如果出現(xiàn)可能是你給加上了一個(gè)白色的border,border-radius:50%只是把方形的元素變成一個(gè)圓形的元素,如果沒(méi)有設(shè)置邊框的寬度,它是不會(huì)有邊框的。