开发者

ContentPlaceHolder is outside the table

开发者 https://www.devze.com 2023-02-04 17:08 出处:网络
I put a ContentPlaceHolder of my MasterPage in a table, and it shows outside the table. Someo开发者_如何转开发ne to help me ?

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

Someo开发者_如何转开发ne 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>


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


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)

0

精彩评论

暂无评论...
验证码 换一张
取 消