将主页中的内容居中 [英] centering content from a master sheet
本文介绍了将主页中的内容居中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将我的内容与片材的其余部分对齐,当我进行相对定位时,它会破坏我放置其他图层的位置,当我将其留给绝对时,它将不会与其他图层对齐页面。
任何人都可以帮我这个吗?
I am trying to center my content with the rest of the sheet, when I go to relative positioning, it destroys the location of where my other layers are placed, when I leave it to absolute, it will not center with the rest of the page.
Can anyone help me with this?
推荐答案
使用图层来布局网页是一个很大的错误,正如你所注意到的那样,只会导致很多问题。
将页面集中在一个简单的使用CSS来居中。
Using layers to layout a webpage is a huge mistake and, as you noticed, will only lead to many problems.
To center a page its a simple as using CSS to center it .
这篇关于将主页中的内容居中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文