web前端期末大作业 HTML+CSS 动漫主题网页作业

一、📚作品介绍

HTML实例网页代码, 本实例适合于初学HTML的同学。该实例里面有设置了css的样式设置,有div的样式格局,这个实例比较全面,有助于同学的学习,本文将介绍如何通过从头开始设计个人网站并将其转换为代码的过程来实践设计。


二、🔗作品效果

▶️视频演示

https://live.csdn.net/v/embed/239832

(title-B27JP 名侦探柯南 三级(6页))

🧩 截图演示

06.png
05.png
04.png
03.png
02.png
01.png


三、💒 作品代码

🧱HTML代码


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
<link href="css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="web">
<div class="top">
<div class="logo"><img src="images/logo.jpg" /></div>
<div class="nav">
<ul>
<li><a href="index.html">网站首页</a></li>
<li><a href="renwu.html">热门人物</a></li>
<li><a href="tuijian.html">热门推荐</a></li>
<li><a href="denglu.html">会员登陆</a></li>
<li><a href="zhuce.html">会员注册</a></li>
</ul>
</div>
<div class="sous">
<form>
<input class="inut" />
<button class="btn"></button>
</form>
</div>
</div>

<div class="banner">
<img src="images/banner.jpg" />
</div>
<div class="box1">
<div class="bx">
<img src="images/img1.jpg" />
<p>热门连载</p>
</div>
<div class="bx">
<img src="images/img2.jpg" />
<p>最新更新</p>
</div>
<div class="bx">
<img src="images/img3.jpg" />
<p>新番动漫</p>
</div>
<div class="bx">
<img src="images/img4.jpg" />
<p>经典完结</p>
</div>
</div>
<div class="tit">热门动漫人物</div>
<div class="box2">
<div class="bx2">
<img src="images/img5.jpg" />
哆唻A梦
</div>
<div class="bx2">
<img src="images/img6.jpg" />
漩涡鸣人
</div>
<div class="bx2">
<img src="images/img7.jpg" />
江户川柯南
</div>
<div class="bx2">
<img src="images/img8.jpg" />
宇智波佐助
</div>
<div class="bx2">
<img src="images/img9.jpg" />
野比大雄
</div>
</div>
<div class="tit">经典动漫</div>
<div class="box3">
<div class="bx3">
<img src="images/img10.jpg" />
<p>哆啦A梦</p>
<p>ドラえもん</p>
</div>
<div class="bx3">
<img src="images/img11.jpg" />
<p>火影忍者</p>
<p>NARUTO -ナルト-</p>
</div>
<div class="bx3">
<img src="images/img12.jpg" />
<p>名侦探柯南</p>
<p>名探偵コナン</p>
</div>
</div>
<div class="tit">最新更新</div>
<div class="box4">
<div class="bx4">
<img src="images/img13.jpg" />
</div>
<div class="bx4">
<img src="images/img14.jpg" />
</div>
<div class="bx4">
<img src="images/img15.jpg" />
</div>
</div>
<div class="foot">
<p>Copyright&copy;经典动漫网版权所有Rights Reserved.</p>
</div>
</div>
</body>
</html>



🏠CSS代码


body {
    margin: 0 auto;
    font-size: 12px;
    font-family: "微软雅黑",arial;
    line-height: 22px;
    background: #e0ecfa;
}

div,p,input,li,h1,h2,h3,h4,h5 {
    height: auto;
    margin: 0;
    padding: 0px;
    vertical-align: middle;
}

li {
    list-style: none;
}

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

img {
    border: 0;
    margin: 0;
    padding: 0;
}

.web {
    width: 1140px;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    background: #FFF;
    padding: 0px 30px;
}

.top {
    height: 55px;
    padding-top: 15px;
}

.logo {
    width: 116px;
    height: 39px;
    float: left;
    margin-right: 50px;
}

.nav {
    width: 720px;
    height: 39px;
    float: left;
}

.nav ul {
    padding: 0px;
    margin: 0;
}

.nav ul li {
    height: 39px;
    line-height: 39px;
    float: left;
    margin: 0px 20px;
}

.nav ul li a {
    font-size: 18px;
    color: #000;
}

.sous {
    width: 140px;
    height: 39px;
    float: right;
}

.inut {
    width: 110px;
    height: 39px;
    border: none;
    border-bottom: 1px solid #000;
    float: left;
}

.btn {
    width: 30px;
    height: 30px;
    background: url(../images/btn.jpg) no-repeat;
    border: none;
    margin-top: 10px;
}

.banner {
    width: 1140px;
    height: 364px;
    margin-bottom: 25px;
}

.box1 {
    width: 910px;
    height: 90px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.box1 .bx {
    width: 88px;
    height: 90px;
    float: left;
    margin: 0px 60px;
    text-align: center;
    font-size: 14px;
}

.box1 .bx img {
    margin-bottom: 10px;
}

.tit {
    height: 60px;
    line-height: 60px;
    padding-left: 20px;
    font-size: 26px;
    margin-bottom: 15px;
    color: #464543;
}

.box2 {
    height: 250px;
}

.box2 .bx2 {
    width: 193px;
    height: 250px;
    float: left;
    margin: 0px 17px;
    text-align: center;
    font-size: 16px;
}

.box2 .bx2 img {
    margin-bottom: 15px;
}

.box3 {
    height: 270px;
}

.box3 .bx3 {
    width: 337px;
    height: 270px;
    float: left;
    margin: 0px 18px;
}

.box3 .bx3 img {
    margin-bottom: 10px;
}

.box3 .bx3 p {
    line-height: 25px;
    font-size: 16px;
}

.box4 {
    height: 305px;
}

.box4 .bx4 {
    width: 337px;
    height: 305px;
    float: left;
    margin: 0px 18px;
}

.foot {
    height: 123px;
    background: #588fb8;
    padding-top: 40px;
}

.foot p {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    color: #FFF;
    text-align: center;
}

.title2 {
    height: 60px;
    line-height: 60px;
    margin-bottom: 20px;
}

.title2 h1 {
    font-size: 26px;
    padding-left: 20px;
    font-size: 26px;
    margin-bottom: 15px;
    color: #464543;
    font-weight: normal;
}

.music {
    width: 1140px;
    height: 1050px;
}

.music ul {
    padding: 0px;
}

.music ul li {
    width: 206px;
    height: 340px;
    float: left;
    margin: 0px 10px;
}

.music ul li img {
    width: 206px;
    height: 224px;
    margin-bottom: 15px;
}

.music ul li h1 {
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    font-weight: normal;
}

.music ul li h1 a {
    color: #000;
}

.music ul li h2 {
    height: 25px;
    line-height: 25px;
    font-size: 14px;
    font-weight: normal;
    color: #b3afaf;
}
/*--登陆注册---*/
.neir {
    width: 1140px;
    margin-bottom: 100px;
    overflow: hidden;
}

.conr {
    width: 380px;
    height: 416px;
    background: #cbe7fc;
    margin: 0 auto;
}

.lewm {
    width: 381px;
    height: 381px;
}

.login {
    width: 308px;
    height: 300px;
    margin: 0 auto;
    padding-top: 30px;
}

.login-title {
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: #3c3c3c;
    padding-bottom: 20px;
    font-weight: 700;
}

.txt {
    width: 300px;
    height: 40px;
    border: #CCC 1px solid;
    margin-top: 10px;
}

.txt .wez {
    width: 40px;
    height: 40px;
    float: left;
}

.txt .input {
    width: 240px;
    float: left;
    padding-left: 20px;
    color: #666;
    height: 40px;
    border: none;
}

.txt .input2 {
    width: 290px;
    float: left;
    padding-left: 10px;
    color: #666;
    height: 40px;
    border: none;
}

.passw {
    width: 300px;
    height: 20px;
    margin-top: 20px;
    font-size: 12px;
}

.password {
    float: left;
}

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

.zhuce {
    float: right;
}

.lbtn {
    width: 300px;
    font-size: 16px;
    margin-top: 25px;
    height: 42px;
    border: 0;
    overflow: hidden;
    vertical-align: middle;
    line-height: 42px;
    color: #fff;
    background: url(../images/ico7.png) no-repeat;
}

.jies {
    width: 1140px;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}

.lv-box {
    height: 225px;
    padding: 20px 0px;
}

.lv-box img {
    width: 300px;
    height: 203px;
    float: left;
    margin-right: 20px;
}

.lv-box-r {
    width: 820px;
    height: 225px;
    float: left;
}

.lv-box .lv-tit {
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
}

.lv-box p {
    font-size: 14px;
    line-height: 30px;
    float: left;
    text-indent: 2em;
}

.lv-box a {
    color: #000;
}

.lv-box span {
    height: 50px;
    line-height: 50px;
    float: right;
    margin-right: 20px;
}

.lv-box span a {
    color: #F00;
}

.nr {
    width: 1140px;
    height: auto;
    overflow: hidden;
    background: #FFF;
    padding-top: 20px;
    padding-bottom: 20px;
}

.neititle {
    height: 50px;
    line-height: 50px;
    font-size: 18px;
    text-align: center;
    border-bottom: #CCC 1px dashed;
    margin-bottom: 20px;
}

.llbx1 {
    height: auto;
    overflow: hidden;
    margin-bottom: 30px;
}

.img1 {
    margin: 0px 20px;
    float: left;
    float: left
}

.img2 {
    margin: 0px 20px;
    float: left;
    float: right;
}

.llbx1 p {
    font-size: 16px;
    line-height: 30px;
    text-indent: 2em;
}







四、🎁更多源码

【干货分享】自学编程的小伙伴可以前往我的 gitee 仓库(持续更新中...)

📕【web学习指南】从web基础、计算机基础到前端常用框架的教程,涵盖前端大部分必备知识(学习指南 + 技术文章 + 资源分享)

Gitee仓库地址(来个Star吧~): https://gitee.com/zhanyuqiu2022/my-app

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容