我已經創建了純粹的CSS的漣漪效應,以前在所有瀏覽器中都很好地工作,現在看起來它目前不在Chrome瀏覽器中工作,但在其他瀏覽器中正確(不包括IE瀏覽器,我不測試該垃圾)好奇爲什麼會發生這種情況?我已經耗盡了我的資源,因爲它現在正在發生什麼事情。操作背景圖像徑向轉換在chrome中不起作用?
<a href="javascript:void(0)" class="btn-shadow btn-ripple">Button</a>
[class^="btn"],
[class*=" btn"]
display inline-flex
font-family 'Roboto', sans-serif
text-decoration none
justify-content center
align-items center
text-align center
cursor pointer
white-space nowrap
padding 8px 20px
font-size 14px
background-color white
border-radius 2px
color #434A54
text-transform uppercase
border none
box-shadow 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)
transition all 0.4s ease-in-out
background-position 50%
outline none !important // we don't like outlines, nasty hobbits...
&:before {
content: '';
position: absolute;
background: red;
}
&:not([disabled])
&.btn-shadow
&:active
box-shadow 0 5px 10px rgba(0,0,0,0.19), 0 2px 2px rgba(0,0,0,0.23)
&.btn-ripple
transition all 0.4s ease-in-out
background-size 200%
&:active
background-repeat no-repeat
background-size 1000%
background-image radial-gradient(circle, rgba(0, 0, 0, .1) 10%, rgba(0, 0, 0, 0) 11%)
看到它發生在這裏: http://codepen.io/brycesnyder/pen/gPojeO?editors=1100
謝謝!
'(不含即,我不測試垃圾)'LOL!我整天都在笑。也許我們對鉻垃圾也是如此,那就是新的IE。我希望!! –
這不是有效的CSS。那是/ sass/...嗎? – j08691
@ j08691它在Codepen中被宣佈爲手寫筆 – HerrSerker