如何在MasterPage中心设置网页? [英] how to set a webpage at center of MasterPage?

查看:71
本文介绍了如何在MasterPage中心设置网页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在MasterPage的中心设置网页?

how to set a webpage at center of MasterPage?

推荐答案

请参阅以下内容:

http://forums.asp.net/t/1667879.aspx/1 [ ^ ]

http://stackoverflow.com/questions/5975674/centre-a-website-with-masterpage [^ ]
Refer these:

http://forums.asp.net/t/1667879.aspx/1[^]

http://stackoverflow.com/questions/5975674/centre-a-website-with-masterpage[^]


有两种方法

1.您可以添加一个单元格表,然后在该单元格中添加contentplaceholder.将align和valign属性分别设置为center和middle.
2.在内容页面中放置Div,或者将contentplaceholder放置在div中.使用CSS为此div标签使用绝对位置.
There are two ways of doing that

1. you could add a single cell table and add the contentplaceholder in that cell. set the align and valign property to center and middle respectively.
2. Have Divs in your content page or perhaps put contentplaceholder inside div. use absolute positoning for this div tag using CSS.


这篇关于如何在MasterPage中心设置网页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆