2013-04-07 72 views
0

我遇到了問題與我的homeWrapperContentRight我無法讓它對齊我的homeWrapperContentLeft。當我這樣做時,是否有任何建議我錯過了?部門對齊不會頂部

Live Url

CSS:

.homeWrapperContentLeft{ 
    width:628px; 
    height:825px; 
    clear: both; 
} 

.homeWrapperContentRight{ 
    float: right; 
    width:250px; 
    height:849px; 
} 

回答

0

添加display: inline.homeWrapperContentLeft就大功告成了。

0

試試這個(根據您的CSS):

.homeWrapperContentLeft { 
    display: inline-block; 
    width:628px; 
    height:825px; 
} 

.homeWrapperContentRight { 
    display: inline-block; 
    width:250px; 
    height:849px; 
} 
0
.homeWrapperContentLeft{ 
    width:628px; 
    height:825px; 
    clear: both; 
    display: inline; 
} 

.homeWrapperContentRight{ 
    float: right; 
    width:250px; 
    height:849px; 
    display: inline 
} 

我想這些線路,並在Chrome中工作。希望能幫助到你!