开发者

ContentPlaceHolder is outside the table

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜