尝试这样的事情?(2 格)
#leftHalf {
background: url(bg-1.jpg);
width: 50%;
position: absolute;
left: 0px;
height: 100%;
}
#rightHalf {
width: 50%;
position: absolute;
right: 0px;
height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
干杯。