码迷,mamicode.com
首页 > 其他好文 > 详细

百度编辑器中设置表格居中

时间:2017-05-10 15:37:41      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:top   auto   first   样式   sid   pad   ide   font   居中   

在百度编辑器中,给表格设置样式 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>

 

百度编辑器中设置表格居中

标签:top   auto   first   样式   sid   pad   ide   font   居中   

原文地址:http://www.cnblogs.com/Stillwatersrundeep/p/6836131.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!