2011-04-18 135 views

回答

0

我会用absolute定位和z-indexSee my example.

<div id="c"> 
    <div id="l">Some text that would get cut off</div> 
    <div id="r">Some text that would cuts off left</div> 
</div> 

#c 
{ 
    height: 100px; 
    background-color: #ccc; 
    position: relative; 
} 
#l 
{ 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    height: 15px; 
    background-color: red; 
    z-index: 1; 
} 
#r 
{ 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    height: 15px; 
    background-color: green; 
    z-index: 2; 
}