I have a html table which I would like to control the sizes of the cell manually. I am getting confused about how its supposed to work. First of all, there is a css attribute "table-layout" which is supposed to control whether or not the cell size is automatically set to the largest content in the column or to a fixed size. I tried setting the css width for the td elements using both table-layout=auto and =fixed, and both times the content shrinked from its original size. The problem is that it didn t shrink to the size I wanted to using either value for table-layout. Here is my css code:
table {table-layout:fixed;}
tr, td {border-style:solid;
border-width:2px;}
.coursename{width:50px;}
.startdate {width:5px;}
.isbn{width:10px;}
.author {width:20px;}
.booktitle{width:10px;}
第二,自动排位规则究竟是什么? 如果所有表层单元的内容一到一页,是否有一栏将首先缩小? 它们是否会消失?