<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style >
#ff{
position: relative;
}
.ff2{
width: 200px;
height: 200px;
background-color: green;
position: relative;/*相對定位:相對于自己原來的位置*/
top:-50px;
left:100px;
.ff3{
width: 1024px;
height: 50px;
background-color: black;
top: -627px;
ul{
list-style: none;
li{
height: 50;
color: white;
float: left;
</style>
</head>
<body>
<img id="ff" src="../../2.jpg" alt="tu1";>
<div class="ff3">
<img src="../3.png" alt=""style="width: 150px;height: 50px;">
<ul>
<li>官網首頁</li>
</ul>
</div>
<div class="ff2"></div>
</body>