我遇到了我的问题,我homeWrapperContentRight无法让它与我的homeWrapperContentLeft. 当我这样做时,我有什么建议吗?
CSS:
.homeWrapperContentLeft{
width:628px;
height:825px;
clear: both;
}
.homeWrapperContentRight{
float: right;
width:250px;
height:849px;
}
添加display: inline到你的.homeWrapperContentLeft,你就完成了。
试试这个(基于你的 CSS):
.homeWrapperContentLeft {
display: inline-block;
width:628px;
height:825px;
}
.homeWrapperContentRight {
display: inline-block;
width:250px;
height:849px;
}
.homeWrapperContentLeft{
width:628px;
height:825px;
clear: both;
display: inline;
}
.homeWrapperContentRight{
float: right;
width:250px;
height:849px;
display: inline
}
我尝试了这些行,它在 Chrome 中工作。希望能帮助到你!