900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > 调整html css表格位置 调整表格中的列宽(CSS / HTML)

调整html css表格位置 调整表格中的列宽(CSS / HTML)

时间:2019-06-01 14:18:31

相关推荐

调整html css表格位置 调整表格中的列宽(CSS / HTML)

我一直在尝试将移动设备上的列宽变为50%,但我尝试过的所有内容都无效。这是css。

@media (max-width: 768px) {

#customTable tbody { float: left; }

#customTable thead { float: left; }

#customTable thead { min-width: 120px }

#customTable td { display: block }

#customTable th { display: block }

#customTable {table-layout: fixed;}

#customTable td {width: 50%;}

#customTable td {height: 20px; overflow: hidden;}

#customTable div {height: 20px;overflow: hidden;}

}

这是html

Test 1Test 2Test 3Test 4

TestTestTestTest

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。