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

问题描述

我想定位我的网页,以便放大或缩小时,网页会从中心缩小或增大。例如,在放大或缩小本网站时,布局移向中心并远离它。我希望你能理解 解决方案

我认为你在谈论margin:0px auto;
所有你需要做的就是把这个添加到CSS中的正文: -

  body {
margin :0px auto;
}

有关详细信息,请点击此链接: -



我希望这有助于......


I want to position my webpage so that on zooming in or out, the webpage diminishes or increases in size from the center. For example while zooming in or out this website, the layout moves towards the center and away from it. I hope you understand

解决方案

I think that you are talking about margin:0px auto;All you have to do is add this to the body in CSS :-

body{
margin:0px auto;
}

Go to this link for further details :-http://bluerobot.com/web/css/center1.html

I hope this helps...

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

08-12 21:13