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

前端 未结 2 1450
温柔的废话
温柔的废话 2021-02-12 04:22

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:38

    -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.

提交回复
热议问题