我基本上想到的是,如果出现重叠,在任何时候都把一个集中的图像(“射线”四)放在前列。
这部法律:
body {
background-image:url( background.jpg );
}
#container {
width: 1040px;
height: 768px;
margin: 0 0 0 75px;
}
#navbar {
float: right;
height: auto;
width: 150px;
margin: 0 0 0 10px;
color: #FF0;
list-style: none;
}
#note {
width: auto;
height: auto;
float: left;
margin: 20px 0 0 -110px;
}
#drob {
height: auto;
width: auto;
float: left;
margin: 50px 0 0 -20px;
}
#gallery {
float: left;
width: 675px;
height: auto;
margin: -125px 0 0 -20px;
}
#gallery img {
float: left;
margin: 0 0 0 5px;
}
#video {
height: auto;
width: auto;
float: left;
margin: 150px 0 0 -20px;
}
<div id="container">
<div id="navbar">
<ul>
<li>Home</li>
<li>About Denard</li>
<li>Stats</li>
<li>Media</li>
</ul>
</div>
<div id="video">
<iframe width="450" height="265" src="http://www.youtube.com/embed/ZmmCAI8U_Vc"
frameborder="0" allowfullscreen></iframe>
</div>
<div id="drob">
<img src="images/drob.png" height="560" width="404" alt="Denard Robinson" />
</div>
<div id="note">
<a href="#"><img src="images/note.png" height="464" width="331" alt="note" /></a>
</div>
<div id="gallery">
<img src="denard1.jpg" height="145" width="215" alt="denard1" />
<img src="denard2.jpg" height="145" width="215" alt="denard2" />
<img src="denard3.jpg" height="145" width="215" alt="denard3" />
</div>
</div>
</body>