简体   繁体   English

我怎样才能像 flex-direction 一样设置我的孩子的方向,但不使用 flex?

[英]How can I set the direction of my <th> 's children like flex-direction does but without using flex?

I have a table and in that table I have tr and th.我有一张桌子,在那张桌子上我有 tr 和 th。 Due to the incompatibility of IE 11 I'm forced to not to use display: flex in my css.由于 IE 11 不兼容,我不得不在我的 css 中不使用 display: flex。 So, I have a select and a div inside my th like this:所以,我有一个 select 和一个 div 在我的 th 里面是这样的:

<th>
    <select id='gerenciasSelectorAsignarFirmantes' class='selectConInfo'>
    </select>
    <div id='tooltipGerenciaSelectedFirmantes'>
        <span class='demo-icon iconAzulOscuro ititle='Información de la gerencia'></span>
    </div>
</th>

The problem is that the div appears below the select and I want those in line instead of vertically like if I would apply flex-direction: row.问题是 div 出现在 select 下方,我希望它们成行而不是像应用 flex-direction: 行那样垂直。

There is a way to do it without use flex and without use another table inside?有一种方法可以在不使用 flex 且不使用内部另一个表的情况下做到这一点? just applying some attribute to th?只是对 th 应用一些属性? like vertical direction or something?像垂直方向还是什么?

Apparently I could apply display: 'inline' to th children and it is working fine.显然我可以将 display: 'inline' 应用到孩子身上,它工作正常。 Thank you.谢谢你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 JavaScript 中应用 display: flex 和 flex-direction: row? - How to apply display: flex and flex-direction: row in JavaScript? 你能在 CSS 和 JavaScript 中动态改变 flexbox 的 flex-direction 吗? - Can you change the flex-direction of flexbox dynamically in CSS and JavaScript? 单击按钮时更改 flex-direction - Change the flex-direction on button click 如何制作 flex-direction: column; 适当地。 我的代码不起作用 - How to make flex-direction: column; properly. My code doesn't work 具有 flex-direction column-reverse 的 Flex 容器不会滚动到顶部 - Flex container with flex-direction column-reverse will not scroll to top 创建一个按钮以在样式的行和列之间切换 flex-direction - Create a button to toggle flex-direction between row and column for a style 如何正确获取使用flex-direction:column显示的块的实际宽度? - How to get actual width of a block displayed with flex-direction:column properly? 如何在保留方向的同时保留孩子的父母重叠 - How to overlap children while keeping parents as is in flex direction column justify-content: flex-end; 和 flex-direction: 列; 没有一起工作 - justify-content: flex-end; and flex-direction: column; are not working together React Native 怎么用like<br> 内弯曲方向行 - React Native how to use like <br> inside flex direction row
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM