在百度編輯器中,給表格設置樣式 style="align:center;" 是無效的,
可以在table標簽設置style="margin:0 auto;",親測可用,代碼如下:
<table style="margin: 0 auto;"> <tbody> <tr style="height:32px;page-break-inside:avoid" class="firstRow"> <td width="91" valign="center" rowspan="8" style="padding: 0px 7px; border: 1px solid windowtext; word-break: break-all;"> <p style="text-align:center"> <span style="font-family: 宋體;font-size: 14px">一般參數</span> </p> </td> <td width="82" valign="center" style="padding: 0px 7px; border-width: 1px; border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"> <p style="text-align:center"> <span style="font-family: 宋體;font-size: 14px">處理器</span> </p> </td> <td width="388" valign="center" style="padding: 0px 7px; border-width: 1px; border-style: solid; border-left-color: initial; border-right-color: windowtext; border-top-color: windowtext; border-bottom-color: windowtext;"> <p> <span style="font-family: 宋體;font-size: 14px">八核 64位 1.7GHz</span> </p> </td> </tr> </tbody> </table>
