<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>咖啡</title>
<style>
*{
padding: 0;
margin: 0;
}
div{
margin: 0 auto;
text-align: center;
}
#boxd{
width: 100px;
height: 100px;
position: fixed;
background-color: azure;
top: 80px;
left: 100px;
overflow: initial;
}
#container
{
width: 800px;
height: 800px;
box-shadow: 0 0 5px rgb(137, 137, 241);
}
#heard{
width: 800px;
height: 200px;
margin-bottom: 5px;
background-color: darkorange;
}
#heard img{
width: 100%;
height: 100%;
}
#nav{
width: 100%;
height: 50px;
margin-bottom: 5px;
background-color: rgb(54, 168, 202);
text-align: center;
font-size: 0;
}
a{
display: inline-block;
text-decoration: none;
width: 100px;
height: 100%;
line-height: 50px;
margin: 0 auto;
font-size: 15px;
font-weight: bolder;
color:#fff;
}
a:hover{
color: khaki;
transform: scale(1.5,1.5);
transition: all 2s ease;
}
#main{
width: 100%;
height: 450px;
margin-bottom: 5px;
background-color: white;
}
#adside{
width: 34%;
height: 100%;
margin-right: 5px;
background-color: rgb(132, 198, 243);
float: left;
text-align: center;
}
table{
width: 100%;
height: 100px;
font-size: 10px;
font-weight: bolder;
}
.box{
width: 70px;
height: 80px;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 0 4px rgb(163, 161, 161);
}
.box img{
width: 60px;
height: 70px;
margin: 5px;
}
#inmain{
width: 65%;
height: 100%;
float: left;
background-color: rgb(103, 238, 154);
}
.box2{
width: 100%;
height: 25%;
}
.box2 img{
width: 30%;
height: 80%;
margin: 5px;
border: 1px dotted #000;
float: left;
}
.box3{
width: 40%;
height: 90%;
float: left;
margin: 5px;
font-size: 10px;
text-align: left;
line-height: 1.8em;
}
#floot{
width: 100%;
height: 80px;
background-color:rgba(250, 187, 164, 0.658);
border-radius: 10px ;
}
</style>
</head>
<body>
<div id='boxd'>广告位</div>
<div id='container'>
<div id='heard'>
<img src="./5.jpg" alt="图片加载错误" title="图片">
</div>
<div id='nav'>
<a href="#">咖啡MENU|</a>
<a href="#">咖啡COOK|</a>
<a href="#">咖啡STORY|</a>
<a href="#">咖啡NEWS|</a>
<a href="#">咖啡PARTY</a>
</div>
<div id='main'>
<div id='adside'>
<table>
咖啡MENU
<tr>
<th> </th>
<th>拿铁</th>
<th>摩卡</th>
<th>卡布奇洛</th>
<th>浓缩咖啡</th>
</tr>
<tr>
<th> </th>
<th>Latte</th>
<th>Cappucino</th>
<th>Mocha</th>
<th>Espresso</th>
</tr>
<tr>
<th>大杯</th>
<td>35</td>
<td>35</td>
<td>35</td>
<td>30</td>
</tr>
<tr>
<th>中杯</th>
<td>30</td>
<td>30</td>
<td>30</td>
<td>25</td>
</tr>
<tr>
<th>小杯</th>
<td>25</td>
<td>25</td>
<td>25</td>
<td>20</td>
</tr>
</table>
<div class="box" style="transform: rotate(10deg);"><img src="./1.jpg" alt=""></div>
<div class="box" style="transform: rotate(-10deg);"><img src="./2.jpg" alt=""></div>
<div class="box" style="transform: rotate(10deg);"><img src="./3.jpg" alt=""></div>
<div class="box" style="transform: rotate(-10deg);"><img src="./4.jpg" alt=""></div>
</div>
<div id='inmain'>
<div class="box2">
<img src="./1.jpg" alt="">
<div class="box3">
<h2>拿铁coffee Latte</h2>
这是一种传统的经典饮料——浓缩咖啡调入热牛奶,其上覆盖一层轻盈的奶沫。<br>
如此品尝此款咖啡时,您可以选择加入某种特殊的口味(如香蕉,焦糖,或杏仁味)的糖浆。
</div>
</div>
<div class="box2">
<img src="./2.jpg" alt="">
<div class="box3">
<h2>卡布奇洛 Cappuccino</h2>
这种咖啡沿袭传统技法,由我们技艺娴熟的咖啡吧员将手工制成的热奶与细腻奶泡轻柔的浇在
浓缩咖啡之上制成。
</div>
</div>
<div class="box2">
<img src="./3.jpg" alt="">
<div class="box3">
<h2>摩卡Coffe Mocha</h2>
这款咖啡由醇香的摩卡酱,浓缩咖啡和蒸奶相融相和,上面覆以搅打奶油。<br>
寒冷的日子,忧伤的时光中,任何人都无法抵挡她的诱惑。
</div>
</div>
<div class="box2">
<img src="./4.jpg" alt="">
<div class="box3">
<h2>浓缩咖啡 Espresso</h2>
这是咖啡的精髓,以最浓缩的方式显现,浓缩咖啡带点焦糖的味道,浓厚馥郁。
</div>
</div>
</div>
</div>
<div id='floot'>L_T网页布局示例1</div>
</div>
</body>
</html>
