【问题标题】:html converted table in wordpress too wide and doesn't fit in full width page templatewordpress 中的 html 转换表太宽,不适合全宽页面模板
【发布时间】:2013-02-22 15:04:53
【问题描述】:

我正在尝试将 xlsx 文件粘贴到 wordpress 中,但存在一些问题。我终于使用谷歌文档将其转换为 html,它看起来与它应该的完全一样,只是内容没有填充页面:

http://www.biomayeutika.org/que/

这里是表格的开头。我知道这可能是一个蹩脚的问题,但我不知道更好。

 
</p>

<p>
    &nbsp;
</p>

<p>
    <br />
    <meta content="20130307;3513400" name="CHANGED" />
</p>
<style type="text/css">
<!-- 
        BODY,DIV,TABLE,THEAD,TBODY,TFOOT,TR,TH,TD,P { font-family:"Calibri"; font-size:x-small }
         --></style>
<table border="0" cellspacing="0" cols="10" frame="VOID" rules="NONE" style="width: 1126px; height: 1270px;">
    <colgroup>
        <col width="310" />
        <col width="37" />
        <col width="60" />
        <col width="147" />
        <col width="134" />
        <col width="42" />
        <col width="55" />
        <col width="152" />
        <col width="332" />
        <col width="85" />
    </colgroup>
    <tbody>
        <tr>
            <td align="LEFT" bgcolor="#FF9900" height="23" style="border-top: 3px solid #969696; border-bottom: 3px solid #969696; border-left: 3px solid #969696; border-right: 3px solid #969696" valign="MIDDLE" width="310">
                <b><font color="#000000">Qu&eacute; hacemos </font></b>
            </td>
            <td align="CENTER" bgcolor="#FF9900" style="border-top: 3px solid #969696; border-bottom: 3px solid #969696; border-left: 3px solid #969696; border-right: 3px solid #969696" valign="MIDDLE" width="37">
                <b><font color="#000000">curso</font></b>
            </td>
            <td align="CENTER" bgcolor="#FF9900" style="border-top: 3px solid #969696; border-bottom: 3px solid #969696; border-left: 3px solid #969696; border-right: 3px solid #969696" valign="MIDDLE" width="60">
                <b><font color="#000000">intensivo</font></b>
            </td>
            <td align="CENTER" bgcolor="#FF9900" style="border-top: 3px solid #969696; border-bottom: 3px solid #969696; border-left: 3px solid #969696; border-right: 3px solid #969696" valign="MIDDLE" width="147">
                <b><font color="#000000">fecha</font></b>

【问题讨论】:

  • 从表中删除 width="1126px"
  • 谢谢!我可以使容器更宽吗?你知道,两边有足够的空间……谢谢! biomayeutika.org/que
  • 不,那是你的页面填充不玩那个
  • 我可以通过内联 CSS 或其他方式仅在这一页中更改它吗?看起来不太好...谢谢 Sahil

标签: html css wordpress html-table


【解决方案1】:

您可以在某处调整这些值以调整一些外观和感觉

<colgroup>
        <col width="310" />
        <col width="37" />
        <col width="60" />
        <col width="147" />
        <col width="134" />
        <col width="42" />
        <col width="55" />
        <col width="152" />
        <col width="332" />
        <col width="85" />
    </colgroup>

手动调整宽度

【讨论】:

  • 谢谢萨希尔!但无论如何我都会尝试更改填充...谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-02-18
  • 1970-01-01
  • 1970-01-01
  • 2013-12-05
  • 2013-08-28
  • 1970-01-01
  • 2019-09-06
相关资源
最近更新 更多