CSS “outline” different behavior behavior on Webkit & Gecko

前端 未结 3 1171
我在风中等你
我在风中等你 2020-11-30 07:37

I\'m working on an experiment & I found out that the \"outline\" CSS2 property is not implemented the same way on Webkit & Gecko

In the script below, I have

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 08:07

    I had the same issue, so I swapped it from using outline to use a box-shadow:

    box-shadow: 0px 0px 0px 1px #FFF;
    

    instead of

    outline:1px #dcdcdc solid;
    

提交回复
热议问题