静态HTML CSS网站制作代码怎么写

发布时间:2022-12-01 17:45:29 作者:iii
来源:亿速云 阅读:114

本篇内容介绍了“静态HTML CSS网站制作代码怎么写”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

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="main">
<div class="top">
<div class="logo">
<img src="img/logo.jpg" />
</div>
<div class="nav">
  <ul >
     <li><a class="hoo" href="index.html" >首页</a></li>
    <li><a href="renwu.html" >经典人物</a></li>
    <li><a href="zuhe.html" >英雄组合</a></li>
   <li><a href="zhuce.html" >用户注册</a></li>
     <li><a  href="pinglun.html" >评论专区</a></li>
   </ul>
</div>
</div>
<div class="box">
<img  src="img/banner.jpg" >
</div>
<div class="nr">
<div class="box1">
<div class="box1-left"><img src="img/gr.jpg"></div>
<div class="box1-right">
<div class="box1-right-tit">我的英雄学院简介</div>
<p>《我的英雄学院》为日本漫画家堀越耕平在《周刊少年JUMP》上推出的第三部连载作品,讲述了一个天生无能力的少年绿谷出久追随憧憬的偶像英雄欧尔麦特,在以培养未来英雄为目的的雄英学院中求学、成长的故事。</p>
<p>《我的英雄学院》为日本漫画家堀越耕平在《周刊少年JUMP》上推出的第三部连载作品,讲述了一个天生无能力的少年绿谷出久追随憧憬的偶像英雄欧尔麦特,在以培养未来英雄为目的的雄英学院中求学、成长的故事。</p>
<p>折寺中学篇(第1-2话)、雄英高中入学考试篇(第3-4话)、个性掌握测试篇(第5-7话)、对人战斗训练篇(第8-11话)、敌人联军入侵USJ篇(第12-21话)、雄英体育季篇(第22-44话)、职场体验与英雄杀手袭来篇(第45-58话)、期末考试篇(第58-67话)、林间合宿与敌人联军再袭来篇(第68-83话)、救出爆豪篇(第84话-95话)、家访与住校篇(第96话-99话)、必杀技训练篇(第100话-102话)、英雄执照考试篇(第103话-114话)、All Might与All For One对话篇(第115话-116话)、出久与小胜冲突篇(第117话-121话)、雄英三巨头登场篇(第122话-126)、Sir.Nighteye事务所实习篇(第127话-131话)、【死秽八斋会】调查篇(第132话-137话)、【死秽八斋会】进攻篇(第138话-159话)、【死秽八斋会】善后篇(第160话-162话)</p>
</div>

</div>
<div class="tit">英雄职业</div>
<div class="box2">
<p>随着滥用个性而为非作歹的人数爆炸性的飞升,有勇气的人就学着漫画故事中那样开始为打击犯罪而挺身而出对抗敌人,于是出现了这种以往只能空想憧憬的职业。当前英雄以事务所为中心接受工作,独自或是偕同伙伴一起执行任务。成为优秀的英雄除了人气翻升之外还有高额金钱收入。目前就职英雄的人数处于饱和状态。</p>
</div>
<div class="tit">雄英高校</div>
<div class="box2">
<p>国立的名门高校,学生平均偏差值高达79。在此的教师全都是职业级的英雄。每个学年的学生分成英雄科A、B班、普通科C、D、E班、辅助科F、G、H班、经营科I、J、K班,总计11班。许多知名英雄都是从雄英英雄科毕业的,NO.1英雄.欧尔迈特和NO.2英雄.安德鲁皆是这学校的校友,想成为伟大的英雄的话,从雄英毕业是公认的必需条件。
</p>
<p>人气最高的英雄科每年的录取比例低于1/300,因为入学名额通常只有36名外加推荐入学者4名,总计40名学生。校训为"Plus Ultra(不懈进取,永无止境)",有勉励学生越过苦难更上前进的意思,而能力越强的学生则会被给予更强的试炼。
</p>
<p> 校风相当自由,能够在学校中自由地使用个性。与普通学校不同,并没有所谓的入学典礼或参观校园,对于就读英雄科的学生们的教导会注重于实践演习的部份。校舍俯瞰是个巨大的H字,校门还有安装着由厚重的铁板合金构成的闸门"雄英防护壁"。
 </p>
</div>
<div class="box3">
<img src="img/in01.jpg">
<img src="img/in02.jpg">
<img src="img/in03.jpg">
</div>
</div>

<div class="foot">
<P>Copyight@我的英雄学院</P>
<p>Rights Reserved.</p>
</div>

</div>
</body>
</html>

CSS样式代码

@charset "utf-8";
/* CSS Document */ 
body {
  margin: 0 auto;
  font-size: 12px;
  font-family: "微软雅黑",arial;
  line-height: 22px;
  background: #fbf1da;
}

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

li {
  list-style: none;
}

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

a:link {
  color: #333;
}

a:hover {
  color: #629705;
  text-decoration: none;
  overflow: hidden;
}

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

.main {
  width: 1024px;
  height: auto;
  margin: 0 auto;
  background: #FFF;
}

.top {
  height: 88px;
  padding-top: 16px;
}

.logo {
  width: 66px;
  height: 72px;
  float: left;
  margin-left: 25px;
}

.nav {
  width: 550px;
  height: 55px;
  float: right;
  padding-top: 10px;
}

.nav ul {
  padding: 0px
}

.nav ul li {
  line-height: 55px;
  float: left;
  text-align: center;
  display: inline-block;
  position: relative;
  width: 110px;
}

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

.nav ul li a:hover {
  color: #faab18;
}

.hoo {
  color: #faab18 !important;
}

.box {
  width: 1024px;
  height: 418px;
}

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

.box1 {
  width: 1000px;
  height: 260px;
}

.box1-left {
  width: 200px;
  height: 220px;
  padding: 20px;
  float: left;
}

.box1-right {
  width: 740px;
  margin-left: 20px;
  height: 220px;
  float: left;
}

.box1-right-tit {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  height: 40px;
  line-height: 40px;
}

.box1-right p {
  font-size: 14px;
  line-height: 22px;
  text-indent: 2em;
}

.tit {
  font-size: 16px;
  height: 40px;
  line-height: 40px;
  color: #333;
  margin-left: 20px;
  font-weight: bold;
}

.box2 {
  padding: 0px 20px;
}

.box2 p {
  font-size: 14px;
  line-height: 22px;
  text-indent: 2em;
}

.box3 {
  width: 1000px;
  height: 190px;
}

.box3 img {
  width: 256px;
  height: 165px;
  float: left;
  margin: 20px 38px;
}

.mdi {
  height: 570px;
  width: 1000px;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 20px;
}

.mdi ul {
  margin: 0px;
}

.mdi ul li {
  width: 230px;
  height: 230px;
  float: left;
  text-align: center;
  margin: 10px;
}

.mdi ul li img {
  width: 230px;
}

.mdi ul li h3 {
  text-align: center;
  line-height: 30px;
  font-size: 14px;
}

.xq-box01 {
  width: 1000px;
  height: 600px;
  padding: 20px;
}

.xq-box01  ul {
  padding: 0px;
}

.xq-box01 ul li {
  width: 480px;
  float: left;
  padding: 10px;
}

.xq-box01 ul li img {
  width: 460px;
  height: 300px;
  display: block;
}

.xq-box01  .xiangq {
  width: 420px;
  height: 200px;
  padding: 20px;
  border-top: none;
  background: #e5e4e2;
}

.xq-box01  .xiangq h2 {
  height: 40px;
  font-size: 16px;
  line-height: 40px;
  margin-bottom: 10px;
  border-bottom: #D8D7D7 1px solid;
}

.xq-box01  .xiangq p {
  font-size: 12px;
  text-indent: 2em;
}

.huiy {
  width: 100%;
  height: 650px;
}

.mc {
  float: left;
  width: 360px;
  margin-left: 100px;
  padding-top: 100px;
}

.reg-other {
  float: left;
  margin-left: 60px;
  height: 500px;
  padding-left: 60px;
  border-left: solid 1px #e6e6e6;
  padding-top: 100px;
}

.reg-other .phone-fast-reg {
  background: url(../img/wz-01.png) no-repeat;
  width: 300px;
  height: 355px;
}

.one {
  margin: 20px 0
}

.one label {
  width: 100px;
  float: left;
  text-align: right;
  height: 20px;
  line-height: 20px;
}

.one input {
  border: 1px solid #ccc;
  height: 20px
}

.two {
  padding-left: 100px
}

.reda {
  color: red
}

.a2 {
  width: 100px;
  margin-left: 5px;
  padding: 2px;
  background: #ccc
}

.btn {
  background: #ffb72f;
  width: 50px;
  border: none;
  padding: 3px;
  color: #fff;
}

.da {
  width: 980px;
  margin: 0 auto;
  margin-top: 20px;
  padding: 20px;
}

.da h3 {
  width: 980px;
  height: 30px;
  border-bottom: 1px solid #333;
  line-height: 30px;
}

.foot {
  height: 70px;

  background: #101211;
}

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

“静态HTML CSS网站制作代码怎么写”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!

推荐阅读:
  1. HTML5 语义标签使用详解
  2. 你所不知道的html5与html中的那些事(一)

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

html css

上一篇:怎么用HTML+CSS+JS制作3D炫酷魔方

下一篇:dreamweaver中怎么使用DIV+CSS制作网站页面

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》