What CSS3 features still need vendor prefixes?

后端 未结 4 1988
野趣味
野趣味 2020-12-20 12:53

The most common features I remember needing prefixes for were features such as flexbox, border-radius, box-shadow, etc... but now they

4条回答
  •  既然无缘
    2020-12-20 13:22

    Browser vendors are getting better at supporting features. That said, some newer or experimental features will require a prefix; but trying to remember or memorize them seems impractical.

    You can check if your CSS needs any vendor prefixes by using tools like Autoprefixer CSS online. This tool generates prefixes based on the information provided from canIuse.

    If you're using build tools for your project, check out:

    • gulp-autoprefixer
    • grunt-postcss

提交回复
热议问题