2013-11-18 3 views
0

Можно ли отобразить все .menu? (сохранение переполнения .box скрыто и его относительное положение).css - может ли div переполнять его относительное переполнение: скрытый контейнер?

<style> 
.box { 
    position: relative; 
    overflow: hidden; 
    width: 400px; 
    height: 100px; 
    background-color: grey; 
} 

.menu { 
    position:absolute; 
    width: 100px; 
    height: 200px; 
    background-color: black; 
} 
</style> 

<div class="box"> 
    <div class="menu"/> 
</div> 

ответ

0

попробовать это:

<style> 
    .box { 
     position: relative; 
     overflow: hidden; 
     width: 400px; 
     height: 100px; 
     background-color: #CCCCCC; 

    } 

.menu { 
    position: fixed; 
    width: 100px; 
    height: 200px; 
    background-color: black; 


} 
</style> 

<div class="box"> 
    <div class="menu"></div> 
</div> 
Смежные вопросы