https://jsfiddle.net/2L9mznzu/
有两个空文本按钮,如何将它们对齐成一行?
.button {
display: inline-block;
width: 80px;
height: 30px;
line-height: 30px;
background: gray;
margin: 0 4px;
text-align: center;
}Run Code Online (Sandbox Code Playgroud)
<div class="button">
</div>
<div class="button">Button
</div>
<div class="button">
</div>Run Code Online (Sandbox Code Playgroud)
我的反应项目有几个“flex”兼容性错误。如何消除 VS Code 中的这些错误?我已经在我的项目中使用了 postcss。
'flex' is not supported by Internet Explorer < 11. Add '-ms-flex' to support Internet Explorer 10+.
'flex-direction' is not supported by Internet Explorer < 11. Add '-ms-flex-direction' to support Internet Explorer 10+.
'transform' is not supported by Internet Explorer < 10. Add '-ms-transform' to support Internet Explorer 9+.
Run Code Online (Sandbox Code Playgroud)