(html+css写网站首页)
HTML
<html>
<head>
<meta charset="UTF-8">
<title>网站建设</title>
<link rel="stylesheet" type="text/css" href="css/Travel.css" />
</head>
<body>
<div class="banner">
<h1>网站建设</h1>
<div class="a">
<p></p>
</div>
<div class="nav">
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">门户服务</a></li>
<li><a href="#">推广产品</a></li>
<li><a href="#">营销产品</a></li>
<li><a href="#">SEO优化</a></li>
<li><a href="#">关于我们</a></li>
</ul>
</div>
</div>
<div class="main">
<img src="img/banner.JPG" width="100%" height="500px" />
</div>
<div class="b">
<b><p> 营销门户</p></b>
<hr />
</div>
<div class="c">
<img src="img/网站建设.JPG" /></li>
<div class="c1">
<p></p>
</div>
<img src="img/gzh.JPG"/></li>
<div class="c1">
<p></p>
</div>
<img src="img/小程序.JPG"/></li>
</div>
<div class="d">
<div class="d1">
<b><p><a href="#">网站建设</a><br></b>
PC端/手机端网站 建设是企业进行互联网营销的基础</p>
</div>
<div class="d11">
<p></p>
</div>
<div class="d2">
<b><p><a href="#">公众号搭建/运营</a><br></b>出高价请一支运营团不如把公众号交给我们</p>
</div>
<div class="d11">
<p></p>
</div>
<div class="d3">
<b><p><a href="#">小程序</a><br></b>小程序助力企业抓住风口抢先占领“微信搜索”</p>
</div>
<div class="d11">
<p></p>
</div>
</div>
<div class="e">
<div class="e1">
<img src="img/20161009165423_0637.jpg" width="50%" height="500px"/>
</div>
<div class="e2">
<h1>营销产品</h1>
<b><p>在对的时间找到对的人</p></b>
<h3>朋友圈广告:以类似朋友的原创内容形式在用户朋友圈进行展示的原生广告。 通过整合亿级优质用户流量,朋友圈广告为广告主提供了一个国内与众不同的互联网社交推广营销平台。</h3>
<h3>公众号广告:是基于微信公众平台生态,以类似公众号文章内容的形式在包括文章底部、文章中部、互选广告和视频贴片等四个广告资源位进行展示的内容广告。</h3>
<h3>信息流广告:整合优质APP信息流广告,支持视频广告、单小图广告、三小图广告、大图广告。高效实现您的营销目标。多样的广告资源,帮助您与这些受众建立联系,将优质商业信息推送给真正需要的人。</h3>
</div>
</div>
<footer>
<div class="foot">
<h1>关于我们</h1>
<div class="f">
<h3>营销开户:网站建设/公众号搭建/小程序开发</h3><br>
<h3>营销推广:seo优化/群发系统/软文推送</h3><br>
<h3>营销裂变:微信广告/信息流广告/裂变活动</h3>
</div>
<div class="f1">
<h3>公司地址:******</h3><br>
<h3>咨询热线:******</h3><br>
<h3>QQ:******</h3>
</div>
<div class="f2">
<h3>邮箱:******@qq.com</h3><br>
<h3>QQ:******</h3>
</div>
</div>
</footer>
</body>
</html>
css
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
.banner{
width: 100%;
height: 100px;
background-color:aquamarine;
justify-content: space-between;
}
.banner h1{
float: left;
margin-top: 40px;
}
.banner img{
float: left;
margin-left:300px;
}
.nav ul{
background-color:aquamarine;
width: 60%;
display: flex;
justify-content: space-between;
list-style: none;
margin-left: 25%;
text-align: center;
}
.nav ul li{
width: 100%;
float: left;
background-color:azure;
margin-top: 66px;
font-family: "宋楷";
font-size: 25px;
border: 1px solid greenyellow;
}
.nav ul li:hover{
background-color:burlywood;
}
.nav a{
text-decoration: none;
}
.main{
width: 100%;
height: 500px;
background-color: aquamarine;
margin-top: 0px;
}
.b{
margin-top: 100px;
}
.b p{
height: 60px;
width: ;
margin-left: 300px;
margin-top: 20px;
font-size: 30px;
font-family: "宋体";
color: mediumblue;
}
.c{
margin-left: 300px;
height: 300px;
width: 80%;
}
.c img{
height: 300px;
width: 25%;
float: left;
}
.c1{
width: 50px;
background-color: white;
height: 300px;
float: left;
}
.d{
margin-left: 300px;
height: 80%;
float: left;
font-size: 20px;
}
.d1{
width: 27%;
background-color: white;
height: 300px;
float: left;
margin-top: 30px;
font-family: "宋体";
}
.d2{
width: 25%;
background-color: white;
height: 300px;
float: left;
margin-top: 30px;
font-family: "宋体";
}
.d3{
width: 25%;
background-color: white;
height: 300px;
float: left;
margin-top: 30px;
font-family: "宋体";
}
.d11{
width: 50px;
background-color: white;
height: 300px;
float: left;
}
.d a{
text-decoration: none;
}
.e{
width: 100%;
margin-top: 0px;
}
.e img{
width: 40%;
height: 500px;
float: left;
}
.e2{
float: left;
width: 60%;
height: 500px;
background-color: grey;
}
.e2 h1{
margin-top: 50px;
margin-left: 100px;
width: 80%;
}
.e2 h3{
margin-left: 100px;
width: 80%;
margin-top: 30px;
}
.e2 p{
margin-left: 100px;
width: 80%;
margin-top: 30px;
}
.foot{
background-color: antiquewhite;
width: 100%;
height: 250px;
float: left;
margin-top: 50px;
}
.foot h1{
margin-top: 50px;
margin-left: 10%;
}
.f{
margin-left: 20%;
float: left;
margin-top: 20px;
}
.f1{
float: left;
margin-left: 5%;
margin-top: 20px;
}
.f2{
float: left;
margin-left: 5%;
margin-top: 20px;
}