![](https://img.haomeiwen.com/i5375657/5e6f51a000fce7b7.png)
![](https://img.haomeiwen.com/i5375657/e4bb84b3436c2798.png)
直接这么写会发现宽度并不是等分的
需要加个table-layout属性
![](https://img.haomeiwen.com/i5375657/d15d06588b930bce.png)
table-layout属性值:
值 | 说明 |
---|---|
automatic | 默认。列宽度由单元格内容设定。 |
fixed | 列宽由表格宽度和列宽度设定 |
inherit | 规定应该从父元素继承 table-layout 属性的值。 |
直接这么写会发现宽度并不是等分的
需要加个table-layout属性
table-layout属性值:
值 | 说明 |
---|---|
automatic | 默认。列宽度由单元格内容设定。 |
fixed | 列宽由表格宽度和列宽度设定 |
inherit | 规定应该从父元素继承 table-layout 属性的值。 |
本文标题:原生table 改响应式宽度失效
本文链接:https://www.haomeiwen.com/subject/qpausktx.html
网友评论