我将主页面的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>
答案 0 :(得分:0)
我相信contentplaceholder
会假定其内容的大小,因此如果您想要调整内容的大小,请使用特定大小的表格包装内部内容。
另外,如果将contentplaceholder
包裹在<div>
内,是否会遇到同样的问题? (提示:使用position:relative
)
答案 1 :(得分:0)
你的样式表中有浮动:右侧还是左侧?