如何在C#中的Web浏览器控件上对齐用户控件位置

时间:2010-10-18 16:46:25

标签: c# browser controls

我创建了一个Web浏览器控件和一个表单用户控件。如何对齐表单用户控件是Web浏览器的中心。请看上面的图片。谢谢。

http://i200.photobucket.com/albums/aa41/xuanhung123/Untitled3.png

1 个答案:

答案 0 :(得分:1)

你可以把它放在div中并提及div的样式,如下所示

<div class="divUserCtrl">
   <!-- put your control here-->
</div>

并在CSS中

.divUserCtrl
{
  margin:0 auto;
}