(前端开发)网页制作案例

HTML(index.html)




	
	
	
	A宝
	
	


	
	

	
	

	
	

	
	

	
	

前端开发工程师

查看全部

CSS(base.css)

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}


CSS(index.css)

.wrapper {
    margin: 0 auto;
    width: 1200px;
}

body {
    background-color: #f3f5f7;
}

.header {
    height: 100px;
    background-color: #fff;
}

.header .wrapper {
    padding-top: 29px;
    display: flex;
}

.logo a {
    display: block;
    width: 195px;
    height: 41px;
    background-image: url(../images/logo.png);
    font-size: 0;
}

.nav ul {
    padding-left: 102px;
    display: flex;
}

.nav ul li {
    margin-right: 24px;
}

.nav ul li a {
    display: block;
    padding: 6px 8px;
    line-height: 27px;
    font-size: 19px;
}

.nav li .active,
.nav li a:hover{
    border-bottom: 2px solid #00a4ff;
}


.search {
    display: flex;
    margin-left: 64px;
    padding-left: 19px;
    padding-right: 12px;
    width: 412px;
    height: 40px;
    background-color: #f0e2bb;
    border-radius: 20px;
}

.search input {
    flex: 1;
    border: 0;
    background-color: transparent;
    outline: none;
}

.search input::placeholder {
    font-size: 14px;
    color: rgb(150, 94, 229);
}

.search a {
    align-self: center;
    width: 16px;
    height: 16px;
    background-image: url(../images/search.png);
}

.user {
    margin-left: 32px;
    margin-top: 4px;
}

.user img {
    padding-right: 7px;
    vertical-align: middle;
}

.user a span {
    font-size: 16px;
    color: #666;
}







.banner {
    height: 420px;
    background-color: #0092cb;
}

.banner .wrapper {
    display: flex;
    justify-content: space-between;
    height: 420px;
    background-image: url(../uploads/banner.png);
}

.banner .left {
    padding: 3px 20px;
    width: 191px;
    height: 420px;
    background-color: rgba(0,0,0,0.42);
}

.banner .left a {
    display: block;
    height: 46px;
    background: url(../images/right.png) no-repeat right center;
    line-height: 46px;
    font-size: 16px;
    color: #fff;
}

.banner .left a:hover {
    background-image: url(../images/right-hover.png);
    color: #00a4ff;
}

.banner .right {
    margin-top: 60px;
    width: 218px;
    height: 305px;
    background-color: #209dd5;
    border-radius: 10px;
}

.banner .right h3 {
    font-size: 15px;
    height: 48px;
    padding-left: 14px;
    padding-top: 18px;
    color: #fff;
    font-weight: 400;
}

.banner .right .content {
    padding: 14px;
    width: 218px;
    height: 257px;
    background-color: #fff;
    border-radius: 10px;
}
/* 
.banner .right dt{
    font-size: 14px;
    line-height: 20px;
    padding-bottom: 8px;
    color: #333333;
}

.banner .right dd span{
    font-size: 12px;
    line-height: 16px;
    color: #00a4ff;

}

.banner .right dd strong {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #7d7d7d;
}

.banner .right dd {
    border-bottom: 1px solid #e0e0e0;
} */





.banner .right dl {
    margin-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.banner .right dt {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.banner .right dd {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
}

.banner .right dd span {
    color: #00a4ff;
}

.banner .right dd strong {
    color: #7d7d7d;
    font-weight: 400;
}

.banner .right a {
    display: block;
    height: 32px;
    background-color: #00a4ff;
    border-radius: 15px;
  
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    text-align: center;
    line-height: 32px;
}









.recommend .wrapper{
    display: flex;
    width: 1200px;
    height: 60px;
    background-color: #fff;
    margin-top: 11px;
    padding: 18px 20px;
    box-shadow: 0px 1px 2px 0px rgba(211, 211, 211, 0.5);
}

.recommend ul {
    display: flex;
}

.recommend h3 {
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
    color: #00a4ff;
    padding-right: 20px;
}

.recommend li {
    font-size: 18px;
    line-height: 25px;
    font-weight: 400;
    color: #333333;
    padding-right: 24px;
    padding-left: 24px;
    border-right: 1px solid #e0e0e0;
}

.recommend li:nth-child(1) {
    padding-left: 0;
}

.recommend li:nth-child(9) {
    padding-right: 93px;
    border-right: none;
}
.recommend .modify {
    font-size: 16px;
    line-height: 22px;
    padding-top: 1px;
    padding-bottom: 2px;
    color: #00a4ff;
}







.course {
    margin-top: 15px;
}

.hd {
    display: flex;
    justify-content: space-between;
    height: 60px;
    line-height: 60px;
}

.hd h3 {
    font-size: 21px;
    font-weight: 400;
}

.hd .more {
    padding-right: 20px;
    font-size: 14px;
    color: #999999;
    background: url(../images/more.png) no-repeat right center;
}

.bd ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.bd li {
    margin-bottom: 14px;
    width: 228px;
    height: 271px;
    background-color: pink;
}

.bd .pic {
    height: 156px;
}

.bd .text {
    padding: 20px;
    height: 115px;
    background-color: #fff;
}

.bd .text h4 {
    margin-bottom: 14px;
    height: 40px;
    font-size: 14px;
    line-height: 20px;
    color: #333333;
    font-weight: 400;
}

.bd .text p {
    font-size: 14px;
    line-height: 20px;
    color: #999999;
}

.bd .text span {
    color: #fa6444;
}

.hd .text p i {
    font-style: normal;
}








.hd ul {
    display: flex;
}

.hd ul li {
    padding: 0 30px;
}

.hd ul li .active {
    color: #00a4ff;
}

.bd {
    display: flex;
}

.bd .left {
    margin-right: 15px;
    width: 228px;
    height: 386px;
}










.footer {
    margin-top: 60px;
    padding-top: 60px;
    height: 273px;
    background-color: #fff;
}

.footer .wrapper {
    display: flex;
    justify-content: space-between;
}

.footer .left {
    width: 440px;
    /* background-color: pink; */
}

.footer .left .pic {
    width: 195px;
    height: 41px;
    margin-bottom: 24px;
}

.footer .left .text {
    font-size: 12px;
    color: #666;
}

.footer .left .down {
    display: block;
    margin-top: 14px;
    width: 120px;
    height: 36px;
    border: 1px solid #00a4ff;

    font-size: 16px;
    color: #00a4ff;
    text-align: center;
    line-height: 36px;
}

.footer .right {
    display: flex;
}

.footer .right dl {
    margin-left: 130px;
}

.footer .right dt {
    font-size: 16px;
    line-height: 23px;
    color: #333333;
    font-weight: 400;
    margin-bottom: 12px;
}

.footer .right dd {
    line-height: 24px;
    font-size: 14px;
    color: #666666;
}

你可能感兴趣的:(html,javascript,css)