ContentPlaceHolder 位于表格之外

发布于 2024-10-11 11:14:49 字数 466 浏览 0 评论 0原文

我将 MasterPage 的 ContentPlaceHolder 放入表格中,它显示在表格之外。

有人来帮助我吗?

谢谢

<table class="four_tile_table" border="1" cellpadding="0" cellspacing="0" width="100%">
    <tr>
       <td class="feature_phone_content" valign="top" width="39%">
          <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
          </asp:contentplaceholder>
       </td>
    </tr>
</table>

I put a ContentPlaceHolder of my MasterPage in a table, and it shows outside the table.

Someone to help me ?

Thank you

<table class="four_tile_table" border="1" cellpadding="0" cellspacing="0" width="100%">
    <tr>
       <td class="feature_phone_content" valign="top" width="39%">
          <asp:contentplaceholder id="ContentPlaceHolder1" runat="server">
          </asp:contentplaceholder>
       </td>
    </tr>
</table>

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

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

发布评论

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

评论(2

长伴 2024-10-18 11:14:49

您的样式表中是否有 Float: right 或 left ?

Do you have Float: right or left in your stylesheet?

完美的未来在梦里 2024-10-18 11:14:49

我相信 contentplaceholder 假定其内容的大小,因此如果您想调整内容的大小,请使用特定大小的表格包装您的内部内容。

另外,如果将 contentplaceholder 包装在

内,是否也会遇到同样的问题? (提示:使用position:relative

I believe that the contentplaceholder assumes the size of its contents, so if you want to size the contents, wrap your inner content with a table of a particular size.

Also, do you have the same problem if you wrap your contentplaceholder inside the <div>? (Hint: use position:relative)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文