自己做的一个基础的网页布局
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>阳光科技有限公司首页</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="top">
<div class="top-box w">
<div class="top-l">
您好,欢迎访问网站!
</div>
<div class="top-r">
<ul>
<li><a href="#">登录</a></li>
<li><a href="#">注册</a></li>
<li><a href="#">联系客服</a></li>
<li><a href="#">收藏本站</a></li>
</ul>
</div>
</div>
</div>
<div class="header">
<div class="header-box w">
<div class="header-l">
</div>
<div class="header-r">
<ul>
<li><a href="#"><span>公司首页</span></a></li>
<li><a href="#">产品介绍和下载</a></li>
<li><a href="#">合作流程</a></li>
<li><a href="#">加入我们</a></li>
</ul>
</div>
</div>
</div>
<div class="banner">
</div>
<div class="info">
<div class="info-box w">
<ul>
<li>
<div><img src="images/info_03.jpg"></div>
<h3>您的需求由您决定</h3>
<p>用户无局限,弥补支付空白,支持三大运营商计费通道自由转换。</p>
</li>
<li>
<div><img src="images/info_04.jpg"></div>
<h3>超高转化率</h3>
<p>我们还提供了“App自动发布机”,可以向排名前100的应用市场自动发布推广。</p>
</li>
<li>
<div><img src="images/info_05.jpg"></div>
<h3>巨大的盈利空间</h3>
<p>用户无需开设账户,操作便捷,在行内支付转化率最高,超过60%以上。</p>
</li>
<li class="xiaoshi">
<div><img src="images/info_06.jpg"></div>
<h3>全方位一站式服务</h3>
<p>为保障开发者的利益,我们还提供了周期结算垫付服务。</p>
</li>
</ul>
</div>
</div>
<div class="hot-line">
<h2>我们为企业提供互联网服务12年,专业团队为您抢占微营销先机!</h2>
<p>拨打24H咨询热线: 010-12345678</p>
</div>
<div class="bengin">
<div class="xiazai">
<a href="#"></a>
</div>
</div>
<div class="main w clearfix">
<div class="new-t">
<img src="images/news.jpg">
</div>
<div class="new-c">
<img src="images/pic_01.jpg">
<h4>2014公司发展良好</h4>
<p>公司的资金实力和发展规模不断壮大,目前,辖有全资 子公司两个,控股公司一个,参股公司两个,公司总资 产为58.98亿元,所有者权益为37.74亿元。</p>
</div>
<div class="new-c">
<img src="images/pic_01.jpg">
<h4>2014公司发展良好</h4>
<p>公司的资金实力和发展规模不断壮大,目前,辖有全资 子公司两个,控股公司一个,参股公司两个,公司总资 产为58.98亿元,所有者权益为37.74亿元。</p>
</div>
<div class="new-l">
<ul>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
</ul>
</div>
<div class="new-l">
<ul>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
<li>
<a href="#">企业精准营销,品牌定位口碑营销</a>
<span>2014-10-11</span>
</li>
</ul>
</div>
</div>
<div class="footer">
<div class="footer-a w">
<div class="footer-b">
<div class="footer-c">
<h4>在线留言</h4>
<textarea>请输入您的留言内容</textarea>
<button></button>
</div>
<div class="footer-d">
<h4>联系俺们</h4>
<p>Add:北京市某某某某某某某某 <br />
Tel : 010-123456789 <br />
网址: www.itcast.cn <br />
EML:123456789@qq.com
</div>
</div>
<div class="subnav">
<a href="#">关于我们</a>
<a href="#">联系我们</a>
<a href="#">友情链接</a>
<a href="#">加入我们</a>
<br />
Copyright©2013 Upay. All Rights Reserved 信息版权所有 京ICP备12026883号-5
</div>
<div class="guding">
</div>
</div>
</div>
</body>
</html>
* {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
.clearfix:before,
.clearfix:after {
content: "";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix:after {
zoom: 1;
}
.w {
width: 1000px;
margin: 0 auto;
}
.top {
height: 40px;
background-color: #333;
}
.top-box {
line-height: 40px;
}
.top-box .top-l {
float: left;
font-size: 12px;
color: #fff;
}
.top-r{
float: right;
}
.top-r ul {
height: 40px;
}
.top-r li a {
float: left;
font-size: 12px;
color: #fff;
}
.top-r li {
display: inline-block;
margin-left: 20px;
}
.top-r li a:hover {
text-decoration: underline;
color: #fff;
}
.header {
height: 100px;
background-color: #fff;
}
.header-box {
height: 100px;
line-height: 100px;
}
.header-l {
float: left;
width: 303px;
height: 82px;
background: url(images/logo.png) no-repeat;
margin-top: 10px;
}
.header-r li {
float: left;
margin-left: 20px;
}
.header-r {
float: right;
height: 100px;
line-height: 100px;
}
.header-r li a {
font-size: 14px;
color: #3b3b3b;
}
.header-r li a span {
display: inline-block;
border-bottom: 2px solid #9dcb2a;
color: #9dcb2a;
height: 30px;
line-height: 30px;
}
.banner {
height: 600px;
background: url(images/banner.jpg) no-repeat top center;
}
.info-box {
height: 268px;
}
.info-box li {
float: left;
width: 245px;
height: 235px;
border-right: 1px solid #ddd;
margin-top: 20px;
}
.info-box .xiaoshi {
border: none;
}
.info-box li div {
margin-top: 8px;
text-align: center;
padding-top: 20px;
}
.info-box li h3 {
font-size: 20px;
font-weight: 400;
text-align: center;
line-height: 50px;
}
.info-box li p {
margin: 0 18px;
font-size: 12px;
text-indent: 1em;
}
.hot-line {
height: 75px;
background-color: #e1e1e1;
text-align: center;
font-size: 14px;
padding-top: 40px;
}
.bengin {
position: relative;
height: 683px;
background: url(images/download.jpg) no-repeat top center;
background-color: #69ae5b;
}
.xiazai {
position: absolute;
top: 190px;
right: 566px;
width: 335px;
height: 78px;
}
.xiazai a {
display: block;
width: 335px;
height: 78px;
}
.new-c {
float: left;
width: 470px;
height: 150px;
padding: 15px 20px 15px 10px;
}
.new-t {
text-align: center;
margin-top: 20px;
}
.new-c img {
float: left;
margin-right: 10px;
}
.new-c p {
line-height: 25px;
font-size: 14px;
}
.new-b {
float: left;
}
.new-l {
float: left;
width: 470px;
height: 210px;
line-height: 30px;
font-size: 14px;
margin-left: 25px;
}
.new-l li a {
float: left;
color: #424242;
}
.new-l li span {
float: right;
margin-right: 10px;
}
.footer {
height: 310px;
background-color: #333;
}
.footer-a {
height: 268px;
padding: 40px 0 0 50px;
}
.footer-b {
height: 180px;
}
.footer-c {
float: left;
}
.footer h4 {
font-size: 14px;
color: #d8d8d8;
background: url(images/mail.jpg) no-repeat;
padding-left: 30px;
}
.footer textarea {
width: 560px;
height: 81px;
background-color: #1d2026;
border: 1px solid #3b3b43;
resize: none;
outline: 0;
color: #5d5d5d;
padding: 12px;
}
.footer button {
width: 36px;
height: 110px;
background: url(images/btn_03.jpg) no-repeat;
border: 0;
}
.footer-d {
float: left;
font-size: 14px;
color: #d8d8d8;
margin-left: 30px;
}
.footer-d h4 {
background: url(images/man_03.jpg) no-repeat;
}
.footer-d p {
line-height: 25px;
margin-top: 5px;
}
.subnav {
line-height: 35px;
text-align: center;
font-size: 14px;
color: #d8d8d8;
}
.subnav a{
margin-right: 20px;
color: #d8d8d8;
}
.subnav a:hover {
text-decoration:underline;
color: #d8d8d8;
}
.guding {
position: fixed;
width: 40px;
height: 40px;
background: url(images/top_03.jpg) no-repeat;
bottom: 100px;
right: 100px;
} |
|