2011-10-24 150 views
1

有點頭在這裏搔癢,所以任何指針將非常感謝!DIV內有溢出的DIV:隱藏?

我有一個頭部div有屬性溢出:隱藏。這個標題的左邊是頁面標題,右邊是一些圖片。這工作得很好,一切都表現出來。但是,我現在需要將這些圖像包裹在div標籤(它們將變成可單擊的,並通過Ajax更新 - 因此我需要爲每個圖像定義回發div)。如前所述,如果沒有將圖像包裹在div標籤上,它們會顯示正常。但是,只要我添加div標籤,它們就會消失(雖然仍然顯示在頁面源中)。 div標籤採用簡單的形式,並且沒有與它們相關的樣式。

我確定我在這裏錯過了一些東西,但對於我的生活來說,它現在完全繞過了我!

感謝:-)

+0

可能我們看到的頁面? –

+0

不幸的是,它目前在本地服務器上。 – Lee

+0

你能複製一些代碼嗎? 「用div標籤包裹圖像」是什麼意思? –

回答

0

你的問題對我來說有點不清楚,任何方式,如果我理解你的問題

如果需要你可以使用asp:ImageButton保存圖像點擊事件。 如果你真的需要使用div

<div class="header"> // this is the one with overflow hiddden 
<div class="left"> // this div holds the page title ; float:left 
<h1>Title</h1> 
</div> 

<div class="right"> // this div to hold the divs which contain images 
        // if all your images are same height set the same height to this div and float:right 
    <div class="image"> // this div holds the image; make float:left set height and width 
     <img/> 
    </div> 
    <div class="image"> 
     <img /> 
    </div> 
    <div class="image"> 
     <img /> 
    </div> 
</div> 

</div> 

希望這有助於

+1

什麼是'asp:ImageButton'? (修辭問題,沒有什麼提示這個問題與ASP.NET有關) –