Css是文本居中的最佳方式
嗨,有人能帮我做css定位吗?我有这个布局,我希望标题垂直居中,但我不知道当其父can的高度不固定时怎么做Css是文本居中的最佳方式,css,position,Css,Position,嗨,有人能帮我做css定位吗?我有这个布局,我希望标题垂直居中,但我不知道当其父can的高度不固定时怎么做 <div id="floater"> <div id="content"> Content here </div> </div> 直接从 使用它。这已经被问了1000次了。去看看已有的答案。@littlebbytables bestNameEver.sql #floater {float:left; height:50%; m
<div id="floater">
<div id="content">
Content here
</div>
</div>
直接从
使用它。这已经被问了1000次了。去看看已有的答案。@littlebbytables bestNameEver.sql
#floater {float:left; height:50%; margin-bottom:-120px;}
#content {clear:both; height:240px; position:relative;}