小编Wan*_*ian的帖子

如何将这些按钮排成一行?

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)

html css button alignment vertical-alignment

5
推荐指数
1
解决办法
8067
查看次数

如何禁用“Internet Explorer &lt; 11 不支持'flex'。添加'-ms-flex'以支持 Internet Explorer 10+。” 在VS代码中?

我的反应项目有几个“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)

css visual-studio-code

0
推荐指数
1
解决办法
744
查看次数