css - 表格中浮动选择旁边的垂直对齐范围
问题描述
How to vertical align middle text in first column when select is float:right next to the text in span. 此元素必须在 div 中。我可以使用 line-height 但当文本较长时它不存在。
解决方案
将这些 css 规则添加到您的 css 代码中
td > div {
display: flex;
align-items: center;
justify-content: space-between;
}
推荐阅读
- bash - Kubernetes Helm bash 命令:bash: {"message":: command not found
- ruby-on-rails - 在 VS Code 中调试 Cucumber Ruby。错误:没有这样的文件或目录 - exec
- spring - 负载上基于 Spring Cloud Stream 内容的路由
- sql - 如何使用宏在 SAS 中获取当前月份名称和年份
- javascript - 递增/递减值函数 Localstorage
- node.js - Vue js 发布请求表单 | Vue.js 2
- javascript - JavaScript toISOString() 设置用户输入日期前一天的日期?
- arrays - 使用指针数学通过指针访问二维数组:需要数组类型 [Delphi]
- git - 如何从菜单中删除快捷方式?
- java - 使用流 api 将 HashMap 中的值收集到一个数组中