垂直居中分隔 [英] Vertically centre a div
本文介绍了垂直居中分隔的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在此页面上的子菜单中间两行之间垂直居中。
http://complete.sanscode.com/Landscape。
请参阅说明主计划|公园...等我想用jquery来居中。有人知道怎么做?
编辑:菜单可以多行。
谢谢
Jason
解决方案
code> line-height 为一个固定值: http:// jsfiddle。 net / simevidas / yHJjx /
I want to vertically centre the submenu on this page in between the two lines.
http://complete.sanscode.com/Landscape.
See the part that says Master Planning | Park... etc. I'd like to use jquery to centre that. Does anyone know how?
Edit: The menu can be more than one line.
Thanks
Jason
解决方案
Just set the CSS line-height
to a fixed value: http://jsfiddle.net/simevidas/yHJjx/
这篇关于垂直居中分隔的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文