2016-07-27 96 views
1

我有一個固定的位置div(#stoerer),但它仍然滾動(但只是光學)。看看這個:this gif explane what i mean固定位置Div仍然滾動?

這是我的代碼:

<div id="stoerer"> 
    <button class="closed"><i class="fa fa-times" aria-hidden="true"></i></button> 
    <h1>OSTERSPECIAL!</h1> 
    <h2>EINMALIGE ANGEBOT ZU OSTERN</h2> 
    <a href="<?= BASEURL ?>angebote"><i class="fa fa-angle-double-left" aria-hidden="true"></i> Erfahre mehr</a> 
</div> 

#stoerer { 
    //display: none; 
    position: fixed; 
    right: 0; 
    top: 15%; 
    @include box_shadow(4); 
    width: 350px; 
    background: $mvBlue; 
    padding: 20px; 
    z-index: 999; 
} 
+0

嘗試溢出:初始 – Vaibhav

+1

如果您可以提供[jsfiddle](https://jsfiddle.net/),我們可以幫助您更好。 – rmondesilva

+0

你在jsfiddle中的代碼:https://jsfiddle.net/24th3sb9/ – chirag

回答

1

我找到了原因,它是具有-webkit-perspective: 1000; CSS屬性父格,我只是刪除它。 :)無論如何感謝評論。