我想避免我的頁腳重疊放置在頁腳上方div底部右下角的圖像。我已將z-index應用於具有右下圖像的容器,但它仍與頁腳重疊。如何避免頁腳在div上方重疊圖像
的CSS我申請這個樣子的
.content_body
{
margin: 0 auto;
width: 100%;
overflow: hidden;
padding-top: 30px;
background: #E6E6E0;
color: #555;
font-family: Tahoma, Arial, sans-serif;
font-size: 14px;
min-height: 800px;
background-image: url(http://types4u.org/Tomike/temp/images/saturation.png) ;
background-position: right bottom;
background-repeat: no-repeat;
z-index: 1;
}
#footer
{
background: url(http://types4u.org/Tomike/temp/images/bg2.jpg) #E6E6E0;
color: white;
font-family: Lato, Tahoma, Arial, sans-serif;
font-size: 13px;
line-height: 1.5em;
padding: 40px 50px 50px 50px;
clear: both;
border-top: solid #000033 5px;
}
.design_by
{
float: right;
font-size: 2.4em;
font-family: 'tangerine', cursive;
color: white;
}
.copyright
{
float: left;
font-size: 2.4em;
font-family: 'tangerine', cursive;
color: white;
}
<div class="content_body">
hello
</div>
<div id="footer">
<div class="copyright">
<a href="#">mine.com</a> © copyright 2013 all rights reserved.
</div>
<div class="design_by">
Design by <a href="http://types4u.org" target="http://types4u.org">types 4 u</a>
</div>
</div>
我看http://fiddle.jshell.net/CjXxk/4/show/ 你是說你想讓這個男人的照片在頁腳之上? – Charles
@CharlesTian是的。 – user1843335