在sharepoint上的td html5之间的差距

时间:2016-07-18 13:15:05

标签: html html5 css3 sharepoint

我试图在td表之间应用margin-left:



<table class="ms-rteTable-default" cellspacing="0" style="width: 280px; height: 280px; background-color: #ee333b;">
   <tbody>
      <tr>
         <td class="ms-rteTable-default" style="width: 100%;">​​​​​​​<br/><img class="ms-rtePosition-4" alt="illustration-68.png" src="/sites/portail-collaboratif/PublishingImages/Pages/Accueil/illustration-68.png" style="margin: 20px 75px;"/>​​<br/>​​​<br/><span style="color: white; font-family: dinpro; font-size: 24px; font-weight: 300;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Sourcing </span></td>
         <td class="ms-rteTable-default" style="width: 100%;">
            <h4>​​​​​<br/></h4>​​<img class="ms-rtePosition-4" alt="illustration-68.png" src="/sites/portail-collaboratif/PublishingImages/Pages/Accueil/illustration-68.png" style="margin: 20px 75px;"/><br/>​​<br/><span style="color: white; font-family: dinpro; font-size: 24px; font-weight: 300;">&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;Sourcing​ </span></td>
      </tr>
   </tbody>
</table>​​
&#13;
&#13;
&#13;

如何在td之间添加一些空格?

2 个答案:

答案 0 :(得分:0)

给cellsts一些值

td {border:1px solid red;}
<table cellspacing="5">
  <tr>
    <td>1st</td>
    <td>2nd</td>
  </tr>
</table>

答案 1 :(得分:0)

您的CSS应该位于单独的文件中,您可以使用CSS管理cellspacing。

结帐此链接:CSS Tables