当前位置: 代码迷 >> ASP.NET >> 使用masterpage生成的页面,怎么控制其中contentplaceholder的大小
  详细解决方案

使用masterpage生成的页面,怎么控制其中contentplaceholder的大小

热度:2739   发布时间:2013-02-26 00:00:00.0
使用masterpage生成的页面,如何控制其中contentplaceholder的大小
问题:
我有个masterpage,里面有两个contentplaceholder,用masterpage生成页面后,如果我往其中一个contentplaceholder1里放入控件,当我调整里面的控件大小时,contentplaceholder2就会自动变形,然后页面就乱了。

masterpage本来是要方便开发的,为什么里面的contentplaceholder不能固定宽度?

------解决方案--------------------------------------------------------
contentplaceholder本身只是一个占位符,定位还要靠html标签