在表格行之间插入边距

发布于 2024-10-13 01:56:53 字数 2603 浏览 3 评论 0原文

我想在 中的两个 之间插入一个表格。我尝试在行之间粘贴带有边距的 ,我尝试使用类来设计 的样式,然后添加边距,什么也没有。

      <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>    

我想要第一个 和第二个之间有 20px 的空间。

I want to insert a table between two <tr> in a <table>. I've tried sticking a <span> with margin between the rows, I've tried styling the <tr> with a class and then adding a margin, nothing.

      <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>    

I want like a 20px space between the first <tr> and the second.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

草莓味的萝莉 2024-10-20 01:56:53

那是你需要的吗?

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

that is you need ?

<h4 class="nearby" style="margin-top: 20px;"> adfadfad </h4>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文