垂直居中页面 [英] Center a page vertically

查看:84
本文介绍了垂直居中页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于垂直居中的又一个问题:我如何将页面居中?

垂直?


我在Google上搜索过但没有找到任何内容至少在IE / B $ IE,Opera和Mozilla上工作:
http://milov.nl/code/css/verticalcenter.html

或者使用表: http://www.quirksmode.org/css/centering.html


有没有办法做到这一点,在Opera,IE和Mozilla中有效?

谢谢,


-

Boost您在Google上的网站的可见性!
http://www.digitalpoint.com/tools/ad-network/?s=5203

使用Opera革命性的电子邮件客户端: http://www.opera.com/mail/
http://www.auriance.com - http://www.auriance comp.infosystems中的.net

Yet another question about vertical centering: How can I center a page
vertically?

I have searched on Google and didn''t find anything that works at least on
IE, Opera and Mozilla:
http://milov.nl/code/css/verticalcenter.html
Or using a table: http://www.quirksmode.org/css/centering.html

Is there a way to do it and that works in Opera, IE and Mozilla?
Thanks,

--
Boost the visibility of your web site in Google!
http://www.digitalpoint.com/tools/ad-network/?s=5203

Using Opera''s revolutionary e-mail client: http://www.opera.com/mail/

http://www.auriance.com - http://www.auriance.net

推荐答案

www.authoring.stylesheets ,未知用户写道:
关于垂直居中的另一个问题:如何垂直居中页面?


有多种方式,在IE上工作的方式需要负的

保证金,因此几乎可以保证导致无法访问的内容。

有没有办法做到这一点,哪些适用于Opera,IE和Mozilla?
谢谢,
Yet another question about vertical centering: How can I center a page
vertically?
There is number of ways, the ones that work on IE require negative
margin, and thus are almost guaranteed to cause inaccessible content.
Is there a way to do it and that works in Opera, IE and Mozilla?
Thanks,




是的,但它会导致内容在IE中很容易进入。

-

Lauri Raittila< http://www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>

Utrecht,NL。



Yes, but it causes content to be inaccessible very easily in IE.
--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
Utrecht, NL.


" Unknown User" < me@privacy.net>在消息中写道

news:op.snz7vcfhr3xrds@cinza ...
"Unknown User" <me@privacy.net> wrote in message
news:op.snz7vcfhr3xrds@cinza...
关于垂直居中的另一个问题:如何垂直居中页面?

我在Google上搜索过,至少在IE,Opera和Mozilla上找不到任何有用的东西:
http://milov.nl/code/css/verticalcenter.html
或使用表: http://www.quirksmode.org/css/centering.html 谢谢,
Yet another question about vertical centering: How can I center a page
vertically?

I have searched on Google and didn''t find anything that works at least on
IE, Opera and Mozilla:
http://milov.nl/code/css/verticalcenter.html
Or using a table: http://www.quirksmode.org/css/centering.html

Is there a way to do it and that works in Opera, IE and Mozilla?
Thanks,




这可能不是什么你想要,但以下在IE中工作。我没有使用

其他浏览器所以我不能说它们会发生什么。

祝你好运,




< table width =" 100%"边界=" 0" CELLSPACING = QUOT; 0" CELLPADDING = QUOT; 0" height =" 100%"

align =" center">

< tr>

< td>

< div align =" center">垂直和水平居中的东西< / div>

< / td>

< / tr>

< / table>



This may not be what you wanted but the following works in IE. I don''t use
other browsers so I can''t say what will happen in them.
Good Luck,
me

<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%"
align="center">
<tr>
<td>
<div align="center">stuff centered vertically and horizontally</div>
</td>
</tr>
</table>




" Unknown User" < me@privacy.net>在消息中写道

news:op.snz7vcfhr3xrds@cinza ...

"Unknown User" <me@privacy.net> wrote in message
news:op.snz7vcfhr3xrds@cinza...
关于垂直居中的另一个问题:如何垂直居中页面?
Yet another question about vertical centering: How can I center a page
vertically?



http://apptools.com/examples/ tableheight.php


-

必须飞行


Roy

www.reeddesign.co.uk


这篇关于垂直居中页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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