关于mui.css的padding的注意事项
mui.css 的
*
{
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-user-select: none;
outline: none;
-webkit-tap-highlight-color: transparent;
-webkit-tap-highlight-color: transparent;
}
使得padding并不会撑开盒子,因此height = 元素的height或是本身的height + padding + boider
而如果不添加mui.css就会撑开盒子 height = 元素的height或是本身的height
这里应该注意。