html - 表格布局 :fixed behaves odd on iPhone

标签 html ios css css-tables

我需要获得响应式表格,因此在小型设备上,我将 overflow-x:auto 添加到其父级,并将 table-layout:fixed 添加到表格。 代码在这里 HTML

<div class="class1">
  <table class="class2">...</table>
</div>

CSS

.class1{overflow-x:auto}
.class2{width:640px,table-layout:fixed}

但是在 iPhone 上,当我点击行时,tr-s 表现得很奇怪,高度开始增加。

有没有人遇到同样的问题或者知道解决方案?

最佳答案

根据我的经验,问题不在 table-layout:fixedoverflow: auto 中。他们都在设备上运行良好。您可以尝试将 overflow-y:hidden 添加到 .class1

关于html - 表格布局 :fixed behaves odd on iPhone,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27171776/

相关文章:

jquery - 使用 jquery 更改 url 路径

javascript - 用于 HTML5 数据属性的 jQuery 选择器

html - flexbox flex 方向 :column with textarea not working as expected in Firefox

ios - 如何增加 Swift 中预加载的 UITableView 单元格的数量?

ios - UIStackView 是否像 UITableView 一样有委托(delegate)?

css - Bootstrap 响应式切割页脚背景

html - 通过下划线和上划线的中心垂直居中文本

ios - 快速更新行错误 - 尝试添加行...但更新后有 0 行

jquery - 实现评级和 jquery 的简单问题

javascript - 没有指定宽度的表格的 CSS 固定标题