开发者

opera and box-shadow inset on active state

开发者 https://www.devze.com 2023-03-17 07:47 出处:网络
take a look at开发者_C百科 this button In Chrome this looks fine but switching to opera you can not see the box-shadow when the button is pressed (:active). This problem only occurs when the box-shad

take a look at开发者_C百科 this button

In Chrome this looks fine but switching to opera you can not see the box-shadow when the button is pressed (:active). This problem only occurs when the box-shadow on :active state is set to inset i.e. like this: box-shadow: 0px 0px 10px #000 inset;

Anyone knows why this happens?


Add some border radius:

    border-radius: 1px;

with that, it works.

0

精彩评论

暂无评论...
验证码 换一张
取 消