Код: Выделить всё
.sample {
width: 100%;
table-layout: fixed;
}
.sample td:nth-child(1),
.sample th:nth-child(1) {
width: 30%;
}
.sample td:nth-child(2),
.sample th:nth-child(2) {
width: 70%;
}< /code>
Header
30% This columns has a lot of content and a really long woooooooooooooooooooooooooooooooooooooord which is not wrapable by the browser by default. This column still should be 30%with.
70%
< /code>
< /div>
< /div>
< /p>
вышеуказанный стиль работает, если thead < /code> удален, но не работает с ним. < /p>
Примечание, < /p>
[*] столбцы должны быть точно такой шириной, как указано. Использование Table-Layoud: Auto; Код: Выделить всё
colgroup< /ul>
Это следующий вопрос, поскольку новые условия возникли во время моего первоначального набора вопросов на , который при с ColSpan < /p>
Подробнее здесь: https://stackoverflow.com/questions/423 ... hout-using
Мобильная версия