значения свойства:
table, td{
border
:
1px
solid
#00F
;
font-size
24px
border-collapse
collapse
}
table {
width
600px
#t
1
{
table-layout
auto
table, td{ border: 1px solid #00F; font-size: 24px; border-collapse: collapse; } table { width: 600px; } #t1 { table-layout: auto; }
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
link
href
"css/style.css"
rel
"stylesheet"
script
type
"text/javascript"
src
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
></
</
body
table
id
"t1"
tr
td
>To be or not to be?</
>Hello World!</
>Быть или не быть?</
>Привет Мир!</
br
"t2"
"t3"
/*JavaScript*/
document.getElementById("t2").style.tableLayout="fixed";
/*jQuery*/
$(document).ready(function() {
$("#t3").css({ "table-layout": "fixed" });
});