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
)
精彩评论