Why there is -moz-XXX and -webkit-XXX in the CSS3?

前端 未结 2 1987
时光取名叫无心
时光取名叫无心 2021-02-12 04:06

The thing I hate most in CSS3 is that there is always two properties you should put to do one effect. I think this is not professional, and increase the CSS size. For example, w

2条回答
  •  深忆病人
    2021-02-12 04:33

    -webkit-border-radius and -moz-border-radius were created before the CSS3 borders standard was a complete (it is still not an approved standard - it is currently a Candidate Recommendation).

    The standard calls for a border-radius only, as you can see from the specification.

    They are specific to mozilla and webkit - once the standard is approved this should change to be border-radius on all supporting browsers.

提交回复
热议问题