html - 为 IE8 上的表中的最后一个 td 提供宽度

标签 html css internet-explorer-8

我的元素中所有表格的最后一列有问题,因为在最后一列中我有操作按钮,不幸的是我想内联显示表格 td 具有自动宽度,允许它们根据 td 的内容动态显示。如何为最后一个 td 列提供固定宽度。像这样的东西:

last td{
min-width: 50px;
max-width: 300px;
width: auto;
}

为了占据最后一个 td 的整个空间并显示在一行上,我不知道 white-space: nowrap; 行是否对 td 有效:| ...记住,对于 Ie 8 :)

fiddle 示例:http://jsfiddle.net/ux4DD/133/

谢谢。

最佳答案

现在尝试display:inline-block;

.icon1, .icon2, .icon3, .icon4{
display:inline-block;
vertical-align:top;
}

Demo

然后你忘记了你的类(class)[.]

这个

    icon2{} 
icon4{}

进入这个

.icon2 {}

.icon4{}

关于html - 为 IE8 上的表中的最后一个 td 提供宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13816740/

相关文章:

html - 如何在 Bootstrap 中增加字体大小

javascript - 将数字减少到最接近的 3 的倍数

html - 使子div占据最大高度

html - CSS 从溢出中排除元素

html - IE8 中的下拉列表使用 <select> 截断选项文本

html - 在响应式网站上嵌入 Facebook 帖子

jquery - 使用 jQuery 禁用下拉选项

css - 为什么 `border-left` 会影响 CSS 中椭圆的形状?

html - CSS 背景源在 IE8 + Vista 中获取 'flashy'

html - IE8不提交表单隐藏输入