在我的表格中,我正在尝试更改字体大小。我试过在标签中添加字体大小,在 Myposts 类的 CSS 代码中添加它,但没有成功。如何更改字体大小?
<table width="100%" border="0" class = "Myposts"; align="center" cellpadding="3" cellspacing="1" bgcolor="#686868 " >
<tr>
<td width="6%" align="center" bgcolor="#505050 " ><strong>#</strong></td>
<td width="53%" align="center" bgcolor="#505050 "><strong>Job Description</strong></td>
<td width="15%" align="center" bgcolor="#505050 "><strong>Views</strong></td>
<td width="13%" align="center" bgcolor="#505050 "><strong>Replies</strong></td>
<td width="13%" align="center" bgcolor="#505050 "><strong>Date/Time</strong></td>
</tr>
最佳答案
您可以在 CSS 中选择表格单元格
table.Myposts tr td {
font-size: 18px;
}
关于php - 如何修改表格内容的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22898344/