2012-11-09 52 views
1

我在Opera中消失的div有問題。
當你點擊一個鏈接時,標題消失...
請幫忙。消失在Opera中的div,當點擊內部鏈接時

<style type="text/css"> 

    body { 
    height: 100%; 
    border: 0; 
    margin: 0; 
    padding: 0; 
    font-size: 100%; 
} 

#top { 
    position:fixed; 
    height: 60px; 
    margin: 0; 
    background-color: #ccc; 
    width:100%; 
    z-index:100; 
    } 

#content { 
    position:relative; 
    z-index:0; 
    padding-top:70px; 
} 

h1 { 
    font-weight:bold; 
    padding-top: 70px; 
} 

</style> 

problem example

+0

請澄清你的問題。很難說出你想要的東西。 – Mohamad

+0

請看例子鏈接。 http://jsfiddle.net/KNdcL/show然後你點擊示例頁面上的文本鏈接。灰色div消失... – pasteel

+0

在Chrome中運行正常(Win) – Kyle

回答

0

您還沒有宣佈參加#top返回的 '固定' 的位置。

嘗試:

position: fixed; 
top: 0px; 
相關問題