gpt4 book ai didi

html - Internet Explorer 8 忽略表格上的列组宽度

转载 作者:太空宇宙 更新时间:2023-11-03 21:44:21 26 4
gpt4 key购买 nike

出于某种奇怪的原因,IE 忽略了我的列宽,只是将所有六列设置为相等的宽度。

table{
table-layout: fixed;
}

<colgroup>
<col style="width: 15%;" />
<col style="width: 40%;"/>
<col style="width: 5%;" />
<col style="width: 10%;" />
<col style="width: 10%;" />
<col style="width: 20%;" />
</colgroup>

最佳答案

简答:因为 IE 很烂

长答案:使用 <table> , <tr><td>反而。并使用 colspan属性来达到同样的效果。

关于html - Internet Explorer 8 忽略表格上的列组宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21443940/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com