Do I still have to use all five vendor prefixes for the CSS box-shadow property?

后端 未结 3 1351
慢半拍i
慢半拍i 2021-02-19 13:25

When declaring say box-shadow or text-shadow or gradients for that matter, do you still need all the prefixes?

-webkit-box-shadow: inse         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 14:07

    caniuse.com has a good table showing which browsers require the prefix, and which don’t support box-shadow at all.

    (Versions that require a prefix have that prefix underneath the version number, as in the screenshot below.)

    enter image description here

    Whether you need to use the prefixes for whatever site you’re building depends on which browsers are actually used by the site’s existing/intended audience.

提交回复
热议问题