如何将元素放置在另一个元素的中心(水平和垂直) [英] how to place an element in the center(horizontally & vertically) of another elment
本文介绍了如何将元素放置在另一个元素的中心(水平和垂直)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
即使在调整大小窗口时,如何将元素放置在另一个元素的中心(水平和垂直)
解决方案
这取决于元素。以下是对不同方法的一些很好的解释:
6个使用CSS进行垂直居中的方法( http://www.vanseodesign.com/css/vertical-centering/ [ ^ ])
CSS:居中的东西( http://www.w3.org/Style/Examples/007/center.en .html [ ^ ])
how to place an element in the center(horizontally & vertically) of another elment even on resizing window
解决方案
It depends on the element. Here are some good explanations of different methods:
6 Methods For Vertical Centering With CSS (http://www.vanseodesign.com/css/vertical-centering/[^])
CSS: centering things (http://www.w3.org/Style/Examples/007/center.en.html[^])
这篇关于如何将元素放置在另一个元素的中心(水平和垂直)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文