[帮助] HTML设计DIV [英] [HELP] HTML Designing DIV
本文介绍了[帮助] HTML设计DIV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使我的网站与其他网站一样,缩小时,它只会放在中心?就像这个页面一样。谢谢。
How do I make my website be like the others that when zoomed out, it will just be placed in the center? Just like this page. Thanks.
推荐答案
设置宽度,然后使用一些css。例如:
Set the width, then use some css. For example:
<body>
<div id="page-wrap">
<!-- all websites HTML here -->
</div>
</body>
#page-wrap {
width: 800px;
margin: 0 auto;
}
参考: http://css-tricks.com/snippets/css/centering-a-website/ [ ^ ]
这个页面还有很多东西比眼睛还要多。阅读css!
reference: http://css-tricks.com/snippets/css/centering-a-website/[^]
There is a lot more to this page than meets the eye. Read up on css!
这篇关于[帮助] HTML设计DIV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文