您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

为什么不证明内容合理:中心在IE中起作用?

为什么不证明内容合理:中心在IE中起作用?

IE11需要父母拥有flex-direction: column

此示例旋转了按钮:

#div {

  height: 200px;

  width: 50px;

  border: 1px solid black;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column

}

#button {

  height: 50px;

  width: 200px;

  min-width: 200px;

  border: 1px solid black;

  background-color: red;

  transform: rotate(90deg);

}


<div id="div">

  <button id="button">HELLO</button>

</div>
其他 2022/1/1 18:18:33 有424人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶