【HTML/CSS|Web前端开发-仿制卧龙控股主页】Web前端开发,自学笔记整理
仿制卧龙控股主页 1.原始图片
文章图片
2.仿制主页
主页画面1
文章图片
主页画面2
文章图片
3.完整代码
index.html
卧龙控股 | 首页
新闻资讯
-
陈建成董事长出席ATB集团召开年度销售大会
2013-07-30
-
中国电器工业协会分马力电机分会在卧龙召开理事长...
2013-07-30
-
陈建成董事长访问中国驻德大使馆
2013-07-30
-
企业文化是企业持续经营的关键要素
2013-07-30
-
陈建成监事长在ATB集团2013年销售会议上发表重要...
2013-07-30
-
喜迎七一唱卧龙 年轻力量激发企业持久活力 卧龙举...
2013-07-30
卧龙介绍
公司成立于1984年,
经过近30年的发展
已成为电器制造,房地产开发和金融
投资三业并举的综合性跨国...
style.css
/*重置样式*/
* {
margin: 0;
padding: 0;
}
/*1.头部*/
#header {
width:999px;
height: 100px;
margin: 0 auto;
}
#header .logo {
width: 249px;
height: 31px;
float: left;
margin: 39px 0 30px 19px;
}
#header .search {
width: 230px;
/*height: 31px;
*/
height: 29px;
float: right;
margin: 39px 20px 31px 0;
background: #f1f1f1;
border: 1px solid #fefefe;
}
#header .search .text {
height: 29px;
width: 186px;
float: left;
padding-left: 16px;
font-size: 10px;
border: none;
background: #f1f1f1;
}
#header .search .bt {
height: 29px;
width: 26px;
float: left;
background: url(../img/searchbt.png) no-repeat left center;
border: none;
}
/*2.导航*/
#nav {
width: 999px;
height: 60px;
background: lightblue;
margin: 0 auto;
background: black;
}
#nav ul {
padding-left: 25px;
}
#nav ul li {
float: left;
list-style: none;
width: 120px;
height: 60px;
text-align: center;
border-right: 1px solid #4a4a4a;
line-height: 60px;
font-size: 13px;
}
#nav ul .last {
border-right: none;
}
#nav ul li a {
color:white;
text-decoration: none;
}
/*3.横幅*/
#banner {
width: 999px;
height: 464px;
margin: 0 auto;
background: url(../img/banner.png);
}
/*4.新闻*/
#news {
width: 999px;
height: 548px;
margin: 0 auto;
}
#news .news1 {
width: 999px;
height: 243px;
}
#news .news1 .section1 {
width: 454px;
height: 243px;
float: left;
padding-left: 20px;
padding-right: 26px;
}
#news .news1 .section1 h3 {
height: 84px;
line-height: 84px;
font-size: 19px;
}
#news .news1 .section1 ul li{
list-style-position: inside;
list-style-image: url(../img/news1.png);
line-height: 24px;
height: 24px;
width: 454px;
font-size: 12px;
}
#news .news1 .section1 ul li a {
/*float: left;
*/
text-decoration: none;
color: #5c5c5c;
}
#news .news1 .section1 ul li span {
float: right;
color: #aeaeae;
}
#news .news1 .section2 {
width: 202px;
height: 243px;
background: #f1f1f1;
float: left;
padding-left: 26px;
padding-right: 11px;
}
#news .news1 .section2 h3 {
height: 84px;
line-height: 84px;
font-size: 19px;
}
#news .news1 .section2 .info1 {
font-size: 13px;
line-height: 26px;
color: #767676;
padding-bottom: 12px;
}
#news .news1 .section2 .info2 {
font-size: 12px;
line-height: 24px;
color: #acacac;
}
#news .news1 .section3 {
width: 234px;
height: 243px;
background: #fbfbfb url(../img/bg.png) no-repeat 165px 122px;
float: left;
padding-left: 25px;
}
#news .news1 .section3 h3 {
height: 84px;
line-height: 84px;
font-size: 19px;
}
#news .news1 .section3 p {
font-size: 13px;
line-height: 26px;
color: #767676;
margin-bottom: 40px;
}
#news .news2 {
/*width: 999px;
*/
width: 959px;
/*height: 305px;
*/
height: 240px;
padding: 30px 20px 35px 20px;
}
#news .news2 h3 {
height: 35px;
font-size: 19px;
}
#news .news2 .content {
height: 204px;
}
#news .news2 .content .smallBox {
width: 210px;
height: 204px;
float: left;
}
#news .news2 .content .smallBox img {
margin-bottom: 15px;
}
#news .news2 .content .smallBox a {
margin-top: 18px;
font-size: 12px;
line-height: 22px;
text-decoration: none;
color: #5d5d5d;
text-align: justify;
}
/*5.底部*/
#footer {
width: 999px;
height: 331px;
margin: 0 auto;
}
#footer .section1 {
/*width: 999px;
*/
width: 959px;
/*height: 250px;
*/
height: 220px;
background: #e5e5e5;
padding: 30px 20px 0 20px;
}
#footer .section1 h3 {
height: 28px;
padding-left: 12px;
font-size: 16px;
font-weight: normal;
color: #595959;
border-bottom: 1px solid #c2c2c2;
margin-bottom: 20px;
}
#footer .section1 .view1 {
width: 453px;
height: 220px;
float: left;
}
#footer .section1 ul {
float: left;
}
#footer .section1 ul li {
list-style: url(../img/list.png) inside;
margin-bottom: 12px;
}
#footer .section1 ul li a {
text-decoration: none;
font-size: 12px;
color: #595959;
}
#footer .section1 .view2 {
width: 152px;
height: 220px;
float: left;
}
#footer .section1 .view3 {
width: 250px;
height: 220px;
float: left;
}
#footer .section1 .view3 img {
margin: 12px 0 0 30px;
}
#footer .section2 {
/*width: 999px;
*/
width: 959px;
height: 81px;
padding: 0 20px;
}
#footer .section2 .view1 {
width: 290px;
height: 57px;
float: left;
padding-top: 25px;
}
#footer .section2 .view1 a {
font-size: 12px;
color: #888888;
text-decoration: none;
}
#footer .section2 .view1 span {
font-size: 12px;
color: #888888;
margin: 0 5px;
}
#footer .section2 .view2 {
width: 530px;
height: 56px;
float: right;
padding-top: 26px;
font-size: 10px;
color: #888888;
text-align: right;
}
推荐阅读
- JavaScript|JavaScript之DOM增删改查(重点)
- flex|C语言-使用goto语句从循环中跳出
- quill|Quill编辑器插入自定义HTML记录
- HTML基础
- HTML基本知识
- web前端笔记|web前端学习-第一天
- 百度网盘|教你优雅绕开百度网盘限速机制
- 数据可视化|几款免费在线甘特图工具
- HTML+Js实战项目|在网页中实现icon小图标的几种方法
- 如何修改网页小图标,浏览器页面上的图标。