在专业认识实习中,我们通过学习HTML超文本标记语言,提高了静态web前端页面的开发能力,下面就给大家展示一下我们小组仿制的QQ音乐官网界面,只是仿制了PC版,但是部分手机浏览器(QQ浏览器Anoriod)也可以打开(无法进行手机版界面自适应)。
下面展示一下各界面的源码:
首页
歌单推荐
排行榜
-
-
-
-
-
*{
margin: 0 auto;
padding: 0px;
}
.topNav{
width: 100%;
height: 180px;
}
.topCenter{
width: 1200px;
height: 90px;
}
.under{
width: 1200px;
height: 51px;
}
.logo{
width: 170px;
height: 46px;
float: left;
margin-top: 22px;
}
.top1{
width:436px;
height: 90px;
float: left;
padding-left: 20px;
}
.top2 {
width: 94px;
height: 90px;
background-color:#31c27c;
float: left;
}
.top2 a{
width: 94px;
height: 90px;
line-height: 90px;
float: left;
text-align: center;
font-size: 18px;
text-decoration: none;
color: white;
}
.top1 nav a{
line-height: 90px;
float: left;
color: black;
text-align: center;
font-size: 18px;
text-decoration: none;
padding-left: 20px;
}
.top1 nav a:hover{
/**/
color:rgb(49, 194, 124);
}
.top3{
width: 230px;
height: 36px;
float: left;
margin-top: 26px;
border: 1px solid #c9c9c9;
}
.search1{
width: 174px;
height: 36px;
border:0 none;
outline:none;
/*内边距:文字距离边内边框的距离*/
padding: 0px 3px 0px 2px;/*上右下左*/
float: left;
}
.search2{
width: 50px;
height: 36px;
border:0 none;
font-size: 18px;
float: right;
outline:none;
}
.top4{
width: 290px;
height: 90px;
line-height: 90px;
float: right;
}
.nav1{
font-size: 16px;
text-decoration: none;
color: black;
}
.nav2{
margin:0px 10px 0px 20px ;
padding: 12px;
color: white;
font-size: 14px;
background-color:rgb(49, 194, 124);
text-decoration: none;
}
.nav3{
padding: 12px;
border: 1px solid #c9c9c9;
font-size: 13px;
text-decoration: none;
color: black;
}
.nav1:hover{
color:rgb(49, 194, 124);
text-decoration: none;
}
.nav2:hover{
background-color: rgb(42, 168, 107);
text-decoration: none;
}
.nav3:hover{
background-color: #e9e9e9;
text-decoration: none;
}
.under nav{
padding-left: 228px;
margin-top: -10px;
}
.under nav a{
font-size: 15px;
text-decoration: none;
line-height: 51px;
padding-right:28px;
color:black;
}
.under nav a:hover{
color:rgb(49, 194, 124);
}
.under1{
color: rgb(49, 194, 124)!important;
}
.hzy{
width: 100%;
height: 20px;
}
.xdh{
width:20%;
height:1000px;
float: left;
margin-top: 10px;
}
.nr{
width: 80%;
height: 100%;
float: left;
margin-top:10px;
}
.xdh ul li a{
text-decoration: none;
font-size: 15px;
color: black;
}
.xdh ul li {
margin-top: 50px;
text-align: center;
}
.xdh ul li a:hover{
color: lightgreen;
}
.diantai{
width: 1500px;
height: 4000px;
float: left;
margin-top: 10px;
}
.dtBox{
width: 100%;
height: 1700px;
}
.dtBox dl{
width:300px;
height: 400px;
float: left;
margin-left: 14px;
}
.dtBox dl dt{
width: 300px;
height:300px;
}
.dtBox dl dt img{
width:300px;
height:300px;
}
.dtBox dl dd{
margin-top: 15px;
}
.shangwuBox{
width: 100%;
height:500px;
float: left;
}
.shangwuBox dl{
width:300px;
height: 500px;
float: left;
margin-left: 14px;
}
.shangwuBox dl dt{
width: 300px;
height:300px;
/*margin-left: 30px;*/
}
.shangwuBox dl dt img{
width:300px;
height:300px;
margin-left: 30px;
}
.shangwuBox dl dd{
margin-top: 15px;
}
.xinqingBox{
width: 100%;
height: 900px;
float: left;
}
.xinqingBox dl{
width:300px;
height: 400px;
float: left;
margin-left: 14px;
}
.xinqingBox dl dt{
width: 300px;
height:300px;
}
.xinqingBox dl dt img{
width:300px;
height:300px;
}
.xinqingBox dl dd{
margin-top: 15px;
}
.zhutiBox{
width: 100%;
height: 900px;
float: left;
}
.zhutiBox dl{
width:300px;
height: 400px;
float: left;
margin-left: 14px;
}
.zhutiBox dl dt{
width: 300px;
height:300px;
}
.zhutiBox dl dt img{
width:300px;
height:300px;
}
.zhutiBox dl dd{
margin-top: 15px;
}
.changjingBox{
width: 100%;
height: 900px;
float: left;
}
.changjingBox dl{
width:300px;
height: 400px;
float: left;
margin-left: 14px;
}
.changjingBox dl dt{
width: 300px;
height:300px;
}
.changjingBox dl dt img{
width:300px;
height:300px;
}
.changjingBox dl dd{
margin-top: 15px;
}
.dtName{
width: 100%;
font-size: 15px;
margin-left: 30px;
}
.dtLisen{
width: 100%;
font-size: 15px;
color: gray;
margin-left: 30px;
}
.footer{
width: 100%;
height: 589px;
position: absolute;
left: 10px;
top: 5150px;
}
.i{
font-style: italic;
}
.section_inner {
max-width: 1200px;
position: relative;
}
.footer{
color: #000;
background-color: #333;
clear: both;
}
/*.main::after,.section_inner::after{
content:" ";
display: block;
clear: both;
}*/
.footer a{
color: #999;
text-decoration: none;
}
.footer_info{
overflow: hidden;
border-bottom: 1px solid #353535;
position: relative;
padding-bottom: 45px;
width: 1200px;
height: 457px;
}
.footer_download{
position: absolute;
top: 0;
left: 10px;
width: 400px;
height: 229px;
float: left;
}
.footer_product {
position: absolute;
top: 0;
left: 476px;
width: 304px;
height: 300px;
float: left;
}
.footer_link{
float: right;
padding-bottom: 57px;
width: 300px;
height: 337px;
}
.footer_platform{
/* width: 1190px;
height: 148px;
!*background-color: #9d9d9d;*!
float:left;*/
margin: 230px 0 0 10px;
}
.footer_copyright{
width: 1200px;
height: 132px;
text-align: center;
line-height: 28px;
font-size: 12px;
}
.h3{
display: block;
font-size: 1.17cm;
-webkit-margin-before:1em;
-webkit-margin-after: 1em;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
font-weight: bold;
}
.footer_tit{
font-size: 15px;
font-weight: 400;
padding: 80px 0 46px;
}
.footer_download_list{
margin-left: -29px;
}
.footer_download_list_item {
float: left;
text-align: center;
position: relative;
}
.footer ul li a:hover{
color: #31C37C;
text-decoration: none;
}
.footer h3{
color: #999;
}
.footer p a{
color: #999;
text-decoration: none;
}
.footer p a:hover{
color: #31C37C;
}
.li{
list-style: none;
display: list-item;
}
.li a{
text-decoration: none;
}
.icon_txt{
font: 0/0 a;
}
.icon_qm_pc {
width: 37px;
background-position: -2px 0;
}
.icon_qm_pc:hover {
background-position: -2px -50px;
}
.icon_qm_mac:hover{
background-position: -92px -50px;
}
.icon_qm_iphone:hover{
background-position: -279px -50px;
}
.icon_qm_android:hover{
background-position: -190px -50px;
}
.icon_qm_kg:hover{
background-position: -370px -50px;
}
.icon_qm_ss:hover{
background-position: -463px -50px;
}
.icon_qm_qp:hover{
background-position: -563px -50px;/*-49 -50*/
}
.icon_qm_mac{
width: 46px;
background-position: -92px 0;
}
.icon_qm_android {
width: 37px;
background-position: -190px 0;
}
.icon_qm_iphone {
width: 34px;
background-position: -279px 0;
}
.icon_qm_android,.icon_qm_iphone,.icon_qm_mac,.icon_qm_pc,.icon_qm_kg,.icon_qm_qp,.icon_qm_ss{
display: block;
margin: 0 29px 12px;
width: 48px;
height: 48px;
background-image:url("../images/footer.png");
}
/*.icon_qm_pc:hover::before{
content: " ";
position: absolute;
z-index: 1;
width: 48px;
height: 48px;
left: 28px;
background-image: url("../images/footer.png");
background-position: 0 -50px;
}*/
.footer_product_list {
margin-left: -25px;
}
.footer_product_list__item--pic {
text-align: center;
position: relative;
margin-right: 0;
text-indent: 0;
}
.footer_product_list__item{
float: left;
margin-bottom: 18px;
text-indent: 25px;
margin-right:5px;
}
.icon_qm_kg{
width: 41px;
background-position: -370px 0;
}
.icon_qm_ss{
width: 37px;
background-position: -463px 0;
}
.icon_qm_qp{
margin-right: 23px;
width: 40px;
background-position: -563px 0;
}
.footer_link_list__item{
float: left;
min-width: 100px;
margin-bottom: 12px;
}
.footer_platform_list{
margin-left: -25px;
}
.footer_platform_list__item{
float: left;
min-width: 100px;
margin: 0 5px 12px 0;
text-indent: 25px;
}
.F{
width: 1910px;
height: 589px;
}