在表行之间插入边距

时间:2011-01-20 18:56:51

标签: html css html-table margin

我想在<tr>中的两个<table>之间插入一个表格。我尝试在行之间插入<span>边距,我尝试使用类对<tr>进行样式化,然后添加边距,没有。

      <tr>
        <td class="near">
          <a href="../index.html" class="near_place">
              <img src="../images.jpeg" width="80" height="60" class="related_photo" />
              <span class="related_info">asdfadfadfaf</span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
        </td>
      </tr>
      <tr>
        <td class="near">
          <a href="../index.html"class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"> adfadfad </h4>
              <span class="related_info">asdfadfadfaf</span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
          </td>
        <td class="near">
          <a class="near_place">
              <img class="related_photo" />
              <h4 class="nearby"></h4>
              <span class="related_info"></span>
          </a>
        </td>
      </tr>    

我想在第一个<tr>和第二个{{1}}之间留出20像素的空间。

1 个答案:

答案 0 :(得分:0)

你需要什么?

<h4 class="nearby" style="margin-top: 20px;"> adfadfad </h4>