纯html中应用antd.css 后工具栏按钮错位变形,在antd.css 引入之后加入如下代码
<style>
*, *::before, *::after {
-webkit-box-sizing: unset;
box-sizing: unset;
}
</style>
vue中错位
<style scoped>
.container {
position: relative;
}
.container >>> *,
*::before,
*::after {
-webkit-box-sizing: unset !important;
box-sizing: unset !important;
}
</style>
*, *::before, *::after {
-webkit-box-sizing: unset;
box-sizing: unset;
}