2011-10-24 113 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有关) –