请设计一个HTML完整网页,其要求如下,在最外围设置一个大的框,然后在框内的顶部加个logo框,logo框里存放logo图片,位置居中,然后另起一个菜系框,菜系框中是八个相连的小框,八个小框的宽度之和等于大边框之和,当鼠标点击小框时,可以弹出二级菜单,其中有表单,可以点击跳转,长度自定,再另起一个循环图片框,循环图片框与四周有一小段距离,里面是一个左右循环图片界面,点击图片可以跳转。最后再往下起一个菜谱框,这个框里有三十六个小框,小框里可以放图片,可以填写文字,点击小框可以跳转到其他网页,在最下方是友情链接,
时间: 2024-03-23 15:44:00 浏览: 59
好的,以下是一个简单的示例代码,你可以根据需要进行修改和完善:
```html
<!DOCTYPE html>
<html>
<head>
<title>我的网站</title>
<style>
/* 大框 */
#main {
width: 960px;
margin: 0 auto;
border: 1px solid #ccc;
padding: 20px;
}
/* logo框 */
#logo {
text-align: center;
margin-bottom: 20px;
}
/* 菜系框 */
#category {
overflow: hidden;
margin-bottom: 20px;
}
/* 小框 */
.category-item {
float: left;
width: 100px;
height: 100px;
margin-right: 10px;
border: 1px solid #ccc;
text-align: center;
line-height: 100px;
cursor: pointer;
}
/* 循环图片框 */
#slider {
margin-bottom: 20px;
}
/* 菜谱框 */
#recipe {
overflow: hidden;
margin-bottom: 20px;
}
/* 小框 */
.recipe-item {
float: left;
width: 100px;
height: 100px;
margin-right: 10px;
border: 1px solid #ccc;
text-align: center;
line-height: 100px;
cursor: pointer;
}
/* 友情链接 */
#friend-link {
text-align: center;
}
</style>
</head>
<body>
<div id="main">
<div id="logo">
<img src="logo.png" alt="logo">
</div>
<div id="category">
<div class="category-item">菜系1</div>
<div class="category-item">菜系2</div>
<div class="category-item">菜系3</div>
<div class="category-item">菜系4</div>
<div class="category-item">菜系5</div>
<div class="category-item">菜系6</div>
<div class="category-item">菜系7</div>
<div class="category-item">菜系8</div>
</div>
<div id="slider">
<img src="slider1.jpg" alt="slider1">
<img src="slider2.jpg" alt="slider2">
<img src="slider3.jpg" alt="slider3">
<img src="slider4.jpg" alt="slider4">
</div>
<div id="recipe">
<div class="recipe-item">菜谱1</div>
<div class="recipe-item">菜谱2</div>
<div class="recipe-item">菜谱3</div>
<div class="recipe-item">菜谱4</div>
<div class="recipe-item">菜谱5</div>
<div class="recipe-item">菜谱6</div>
<div class="recipe-item">菜谱7</div>
<div class="recipe-item">菜谱8</div>
<div class="recipe-item">菜谱9</div>
<div class="recipe-item">菜谱10</div>
<div class="recipe-item">菜谱11</div>
<div class="recipe-item">菜谱12</div>
<div class="recipe-item">菜谱13</div>
<div class="recipe-item">菜谱14</div>
<div class="recipe-item">菜谱15</div>
<div class="recipe-item">菜谱16</div>
<div class="recipe-item">菜谱17</div>
<div class="recipe-item">菜谱18</div>
<div class="recipe-item">菜谱19</div>
<div class="recipe-item">菜谱20</div>
<div class="recipe-item">菜谱21</div>
<div class="recipe-item">菜谱22</div>
<div class="recipe-item">菜谱23</div>
<div class="recipe-item">菜谱24</div>
<div class="recipe-item">菜谱25</div>
<div class="recipe-item">菜谱26</div>
<div class="recipe-item">菜谱27</div>
<div class="recipe-item">菜谱28</div>
<div class="recipe-item">菜谱29</div>
<div class="recipe-item">菜谱30</div>
<div class="recipe-item">菜谱31</div>
<div class="recipe-item">菜谱32</div>
<div class="recipe-item">菜谱33</div>
<div class="recipe-item">菜谱34</div>
<div class="recipe-item">菜谱35</div>
<div class="recipe-item">菜谱36</div>
</div>
<div id="friend-link">
<a href="#">友情链接1</a>
<a href="#">友情链接2</a>
<a href="#">友情链接3</a>
<a href="#">友情链接4</a>
<a href="#">友情链接5</a>
</div>
</div>
</body>
</html>
```
阅读全文