为什么我的CSS会重叠我的内容?

问题描述:

你可以在这里看到我的网页为什么我的CSS会重叠我的内容?

http://209.140.27.232/~ashleyo/portfolio.html 

我似乎无法弄清楚什么是错我的CSS。看来,这样我就可以不与底部的人以外,似乎是在容器外部的图像点击

删除#contentidz-index -1

现在一个无形的容器重叠我的内容您#contentid

添加z-index0作为这样

#content{ 
z-index:0; 
} 

希望这可以帮助你:)

其实这里s neither a need of this "z-index" for CONTENT小号DIV和既不是“高度”集装箱s DIV as there没有必要的z-index和高度可以自动增长。

只需删除这些属性。

#content{ 
    z-index:0; 
} 
#container{ 
    height: 500px; 
} 

,如果你想你可以用这个CSS属性

#container{ 
    max-height: 500px; 
} 
限制你div`s最大hieght