<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="./css/common.css">
<link rel="stylesheet" href="./css/base.css">
<link rel="stylesheet" href="./css/idnex.css">
<link rel="stylesheet" href="./font/iconfont.css">
</head>
<body>
<!-- header模块 -->
<div class="header">
<div class="w">
<div class="cookIcon">
<img src="./static/s_ff328b8ede.png" alt="">
</div>
<div class="headerTitle">
<ul>
<li><a href="">首页</a></li>
<li><a href="">品牌</a></li>
<li><a href="">新品</a></li>
<li><a href="">产品</a></li>
<li><a href="">新闻</a></li>
<li><a href="">联系</a></li>
<li><a href="">EN</a></li>
</ul>
</div>
</div>
</div>
<!-- Carousel模块 -->
<div class="w">
<div class="carImg">
<img src="./static/1.jpg" alt="">
<div class="btnLeft"><</div>
<div class="btnRight">></div>
</div>
</div>
<!-- newproduct模块 -->
<div class="w">
<div class="newProtitle">
<h2>新品</h2>
<p> newproduct</p>
</div>
</div>
<!-- introduce模块 -->
<div class="w">
<div class="introduce">
<ul>
<li>
<h2>尼斯湖的秘密</h2>
<p>The secret of Loch Ness</p>
<p>甜度 <span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
</p>
<span>食材:黑巧克力此利时、乳腊奶油(新西兰)、白兰地法国)
保鲜条件: 0- 4C保量12小时,10C最佳食用
</span>
<div class="details"><a href="javascript:;">详情介绍</a></div>
</li>
<li><img src="./static/21f9395037.jpg" alt=""></li>
<li><img src="./static/40e40c8c5c.jpg" alt=""></li>
<li>
<h2>尼斯湖的秘密</h2>
<p>The secret of Loch Ness</p>
<p>甜度 <span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
<span class="iconfont"></span>
</p>
<span>食材:黑巧克力此利时、乳腊奶油(新西兰)、白兰地法国)
保鲜条件: 0- 4C保量12小时,10C最佳食用
</span>
<div class="details"><a href="javascript:;">详情介绍</a></div>
</li>
</ul>
</div>
</div>
<!-- branName模块 -->
<div class="w">
<div class="branName">
<h2>品牌</h2>
<p>branName</p>
</div>
</div>
<div class="w">
<div class="branNameImg">
<img src="./static/b35834ea80.jpg" alt="">
<div class="branIntroduce">
Cake我们由国内外项级蛋糕大师一起组成
我们坚持在食村不应手,不符合采购标准的时候,让所涉及产品下线。
为保证部分经典款支持预订,我们与世界不同水果产区建立联系,利用交慧成熟手获取满意的食材
<div class="branDtails">
<a href="javascript:;">查看详情</a>
</div>
</div>
</div>
</div>
<!-- nav模块 -->
<div class="nav">
<div class="navicon">
<a href="javascript:;"><span class="iconfont"></span></a>
<a href="javascript:;"><span class="iconfont"> </span></a>
<a href="javascript:;"><span class="iconfont"></span></a>
</div>
</div>
<!-- footer模块 -->
<div class="footer">
<div class="w">
<ul>
<li>
<dl>
<dt>品牌
<p>branName</p>
</dt>
<dd>公司发展</dd>
<dd>公司品牌</dd>
<dd>团队</dd>
</dl>
</li>
<li>
<dl>
<dt>产品
<p>porject</p>
</dt>
<dd>鼓励蛋糕</dd>
<dd>ui蛋糕</dd>
<dd>鼻子蛋糕</dd>
<dd>西瓜蛋糕蛋糕</dd>
</dl>
</li>
<li>
<dl>
<dt>新闻
<p>newproduct</p>
</dt>
<dd>公司动态</dd>
<dd>公司行业</dd>
<dd>活动</dd>
</dl>
</li>
</ul>
</div>
</div>
</div>
</body>
</html>
common.css
font-family: 'iconfont';
src:
url('iconfont.woff2?t=1664422152407') format('woff2'),
url('iconfont.woff?t=1664422152407') format('woff'),
url('iconfont.ttf?t=1664422152407') format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.w{
margin: 0 auto;
width: 1200px;
}
/* header模块 */
.header{
width: 100%;
height: 60px;
}
.header .cookIcon{
margin-top:5px;
float: left;
}
.headerTitle ul{
margin: 20px 10px;
float: right;
}
.headerTitle ul li{
font-size: 20px;
margin-left: 30px;
float: left;
}
.headerTitle ul li:last-child{
font-size: 18px;
width: 23px;
height: 23px;
text-align: center;
line-height: 23px;
border: 1px solid black;
border-radius: 50%;
}
/* Carousel模块 */
.carImg{
position: relative;
}
.carImg img{
width: 100%;
height: 100%;
}
.btnLeft{
position: absolute;
color: white;
font-size: 35px;
top: 50%;
left: 25px;
transform: translateY(-50%);
width: 20px;
height: 20px;
}
.btnRight{
position: absolute;
color: white;
font-size: 35px;
top: 50%;
right: 25px;
transform: translateY(-50%);
width: 20px;
height: 20px;
}
/* newproduct模块 */
.newProtitle, .branName{
padding-top: 20px;
width: 100%;
height: 110px;
border-bottom: 1px solid transparent;
text-align: center;
/* background-color: aquamarine; */
}
.newProtitle h2{
padding-bottom: 10px;
font-size:35px;
}
.newProtitle p{
font-size:18px;
}
/* introduce模块 */
.introduce{
width: 100%;
height: 500px;
}
.introduce ul{
width: 100%;
height: 100%;
}
.introduce ul li{
float: left;
width: 50%;
height: 50%;
}
.introduce ul li img{
width: 100%;
height: 100%;
}
.introduce ul li{
text-align: center;
}
.introduce ul li p{
padding:20px;
}
.introduce ul li span{
width: 200px;
word-break: break-word;
white-space: pre-line;
}
.introduce ul li h2{
font-size: 25px;
padding:20px;
}
.introduce ul li div{
margin: 12px auto;
width: 80px;
height: 20px;
line-height: 20px;
text-align: center;
border-radius: 10px;
background-color: aliceblue;
}
/* branName模块 */
.branName h2{
padding-bottom: 10px;
font-size:35px;
}
.branName p{
font-size:18px;
}
.branNameImg{
position: relative;
width: 100%;
height: 500px;
}
.branNameImg img{
width: 100%;
height: 500px;
}
.branIntroduce{
position: absolute;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp:4;
bottom: -110px;
text-align: center;
left: 50%;
transform: translateX(-50%);
width: 666px;
height: 200px;
line-height: 36px;
background-color: white;
word-break: break-word;
white-space: pre-line;
}
.branIntroduce .branDtails{
margin: 10px auto;
width: 100px;
height: 40px;
line-height: 15px;
text-align: center;
border-radius: 20px;
background-color: aliceblue;
}
.nav{
margin-top: 110px;
padding-top: 10px;
width: 100%;
height: 120px;
background-color: rgb(214, 214, 214);
}
.navicon{
width: 200px;
height: 60px;
line-height: 60px;
font-size: 25px;
margin: 45px auto;
text-align: center;
background-color: rgb(255, 255, 255);
border-radius: 50px;
}
.navicon a span{
font-size: 25px;
}
.navicon a:nth-child(2) {
margin-left:35px;
margin-right:35px;
}
/* footer模块 */
.footer{
width: 100%;
height: 200px;
color: white;
background-color: black;
}
.footer ul{
padding: 30px;
width: 100%;
height: 100%;
}
.footer ul li{
float: left;
width: 200px;
height: 169px;
margin-right: 60px;
border-right: 1px solid gray;
}
.footer ul li dt{
margin-bottom:25px;
font-size: 20px;
}
.footer ul li p{
font-size: 12px;
color: rgb(211, 211, 211);
}
.footer ul li dd{
margin-bottom:25px;
}
base.css
/*!
* @名称:base.css
* @功能:1、重设浏览器默认样式
* 2、设置通用原子类
*/
/* 防止用户自定义背景颜色对网页的影响,添加让用户可以自定义字体 */
html {
background:white;
color:black;
}
a{
text-decoration: none;
color: black;
}
a:hover{
text-decoration: overline;
}
/* 内外边距通常让各个浏览器样式的表现位置不同 */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
margin:0;
padding:0;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
/* 要注意表单元素并不继承父级 font 的问题 */
body,button,input,select,textarea {
font:12px \5b8b\4f53,arial,sans-serif;
}
input,select,textarea {
font-size:100%;
}
/* 去掉 table cell 的边距并让其边重合 */
table {
border-collapse:collapse;
border-spacing:0;
}
/* ie bug:th 不继承 text-align */
th {
text-align:inherit;
}
/* 去除默认边框 */
fieldset,img {
border:none;
}
/* ie6 7 8(q) bug 显示为行内表现 */
iframe {
display:block;
}
/* 去掉 firefox 下此元素的边框 */
abbr,acronym {
border:none;
font-variant:normal;
}
/* 一致的 del 样式 */
del {
text-decoration:line-through;
}
address,caption,cite,code,dfn,em,th,var {
font-style:normal;
font-weight:500;
}
/* 去掉列表前的标识,li 会继承 */
ol,ul {
list-style:none;
}
/* 对齐是排版最重要的因素,别让什么都居中 */
caption,th {
text-align:left;
}
/* 来自yahoo,让标题都自定义,适应多个系统应用 */
h1,h2,h3,h4,h5,h6 {
font-size:100%;
font-weight:500;
}
q:before,q:after {
content:'';
}
/* 统一上标和下标 */
sub,sup {
font-size:75%;
line-height:0;
position:relative;
vertical-align:baseline;
}
sup {
top:-0.5em;
}
sub {
bottom:-0.25em;
}
/* 让链接在 hover 状态下显示下划线 */
a:hover {
text-decoration:underline;
}
/* 默认不显示下划线,保持页面简洁 */
ins,a {
text-decoration:none;
}
/* 去除 ie6 & ie7 焦点点状线 */
a:focus,*:focus {
outline:none;
}
/* 清除浮动 */
.clearfix:before,.clearfix:after {
content:"";
display:table;
}
.clearfix:after {
clear:both;
overflow:hidden;
}
.clearfix {
zoom:1; /* for ie6 & ie7 */
}
.clear {
clear:both;
display:block;
font-size:0;
height:0;
line-height:0;
overflow:hidden;
}
/* 设置显示和隐藏,通常用来与 js 配合 */
.hide {
display:none;
}
.block {
display:block;
}
/* 设置浮动,减少浮动带来的 bug */
.fl,.fr {
display:inline;
}
.fl {
float:left;
}
.fr {
float:right;
}