表格的一列需要保持一行(HTML / CSS / Javascript) [英] A column of a table needs to stay in one line (HTML/CSS/Javascript)
问题描述
所以我在我的企业家商业机会评级矩阵:
我希望单选按钮保持在同一行。
问题在于我不知道该如何处理,因为如果我给单元格固定的最小宽度,我不确定它会在其他浏览器上正确显示,并且如果单元格很大松开对齐的单选按钮。
So I am having an issue on my entrepreneur business opportunity rating matrix : I would like the radio buttons to stay on the same line. The problem is that I don't know how I should process because if I give a fixed minimum width for the cell, i'm not sure it will display properly on other browsers, and if the cell is to big I loose the alignment of the radio buttons.
你们是否有一个CSS / Javascript(jQuery)技巧可以解决这个问题?
Do you guys have a CSS/Javascript (jQuery) trick that would fix this ?
谢谢
Thank you
推荐答案
很简单:只需添加 white-space:nowrap;
到您的td。
That's easy: Just add white-space: nowrap;
to your td.
这篇关于表格的一列需要保持一行(HTML / CSS / Javascript)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!