答案 0 :(得分:0)
<style type="text/css">
} // this can't be here
td { /* Table */
font-size: 12px;
border-collapse: collapse;
border-width:3px
}
</style>
将其更改为此:
<style>
th, td {
font-size: 12px;
border-collapse: collapse;
border-width:3px
}
</style>
尝试这样。.您的代码中有一个}
,应该不存在。
答案 1 :(得分:0)
您的body {}
样式的默认font-size
设置为该大小,因为向TD
添加样式会更改TD
的样式,但不会更改其他元素。