一涕侈、??作品介紹
HTML實例網(wǎng)頁代碼, 本實例適合于初學(xué)HTML的同學(xué)胁孙。該實例里面有設(shè)置了css的樣式設(shè)置陪拘,有div的樣式格局渴庆,這個實例比較全面铃芦,有助于同學(xué)的學(xué)習(xí),本文將介紹如何通過從頭開始設(shè)計個人網(wǎng)站并將其轉(zhuǎn)換為代碼的過程來實踐設(shè)計。
二襟雷、??作品效果
??視頻演示
https://live.csdn.net/v/embed/240522
(title-N32JP- 京劇文化5頁 html+css+js)]
?? 截圖演示
05.png
04.png
03.png
02.png
01.png
三刃滓、?? 作品代碼
??HTML代碼
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="css/css.css" />
<title>京劇文化</title>
</head>
<body style=" background:#fff;">
<header class="head">
<div class="main">
<div class="logo lt"> <img src="images/logo.jpg"> </div>
<nav class="nav rt">
<ul>
<li class="lt"><a href="index.html">首頁</a></li>
<li class="lt"><a href="jieshao.html">角色介紹</a></li>
<li class="lt"><a href="pic.html">圖片欣賞</a></li>
<li class="lt"><a href="zhuce.html">注冊</a></li>
<li class="lt"><a href="denglu.html">登錄</a></li>
</ul>
<div class="clear"></div>
</nav>
<div class="clear"></div>
</div>
</header>
<div class="banner">
<div class="top_img">
<div class="focus" id="focus">
<div id="focus_m" class="focus_m">
<ul>
<li style="display:block"> <img src="images/banner33.jpg" width="100%" /> </li>
<li style="display:none"> <img src="images/banner22.jpg" width="100%" /> </li>
<li style="display:none"> <img src="images/banner11.jpg" width="100%" /> </li>
</ul>
</div>
<a href="javascript:;" class="focus_l" id="focus_l" title="上一張"><b></b><span></span></a> <a href="javascript:;" class="focus_r" id="focus_r" title="下一張"><b></b><span></span></a> </div>
</div>
</div>
<script type="text/javascript" src="js/js.js"></script>
<div class="jiesao main">
<div class="titi">
<h3>京劇 (戲曲劇種)</h3>
</div>
<div class="left lt"> <img src="images/a11.jpg" alt=""> </div>
<div class="rii rt"> 京劇,又稱平劇耸弄、京戲等咧虎,是中國影響最大的戲曲劇種,分布地以北京為中心计呈,遍及全國各地砰诵。 <br>
<br>
清代乾隆五十五年(1790年)起,原在南方演出的三慶捌显、四喜茁彭、春臺、和春 [1] 四大徽班陸續(xù)進入北京扶歪,與來自湖北的漢調(diào)藝人合作理肺,同時接受了昆曲、秦腔的部分劇目、曲調(diào)和表演方法妹萨,又吸收了一些地方民間曲調(diào)贪薪,通過不斷的交流、融合眠副,最終形成京劇画切。<br>
<br>
京劇在文學(xué)、表演囱怕、音樂霍弹、舞臺美術(shù)等各個方面都有一套規(guī)范化的藝術(shù)表現(xiàn)形式。京劇的唱腔屬板式變化體娃弓,以二簧典格、西皮為主要聲腔。京劇伴奏分文場和武場兩大類台丛,文場以胡琴為主奏樂器,武場以鼓板為主挽霉。 <br>
<br>
京劇的角色分為生防嗡、旦、凈侠坎、丑蚁趁、雜、武实胸、流等行當(dāng)他嫡,后三行已不再立專行。各行當(dāng)都有一套表演程式庐完,唱念做打的技藝各具特色钢属。京劇以歷史故事為主要演出內(nèi)容,傳統(tǒng)劇目約有一千三百多個门躯,常演的在三四百個以上淆党。 <br>
<br>
京劇流播全國,影響甚廣生音,有“國劇”之稱宁否。以梅蘭芳命名的京劇表演體系被視為東方戲劇表演體系的代表,為世界三大表演體系之一缀遍。京劇是中華民族傳統(tǒng)文化的重要表現(xiàn)形式慕匠,其中的多種藝術(shù)元素被用作中國傳統(tǒng)文化的象征符號。</div>
<div class="clear"> </div>
</div>
<div class="list">
<div class="main">
<div class="titi">
<h3>圖片展示</h3>
</div>
<ul>
<li>
<div class="box">
<div class="pic"> <img src="images/a33.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a44.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a55.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a66.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a77.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a88.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a99.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
<li>
<div class="box">
<div class="pic"> <img src="images/a10.jpg" alt=""> </div>
</div>
<div class="text">
<h3>京劇</h3>
</div>
</li>
</ul>
<div class="clear"> </div>
</div>
</div>
<footer class="foot"> 京劇文化傳承 </footer>
</body>
</html>
??CSS代碼
/*通用類*/
* {
margin: 0;
padding: 0;
}
body {
min-width: 1200px;
margin: 0 auto;
font-size: 14px;
background: #fff;
text-align: justify;
color: #010000;
position: relative;
}
h1, h2, h3 {
font-weight: 500;
}
img {
border: none;
}
a {
cursor: pointer;
color: #333;
text-decoration: none;
outline: none;
}
ul {
list-style-type: none;
}
em {
font-style: normal;
}
.lt {
float: left;
}
.rt {
float: right;
}
.clear {
font: 0px Arial;
line-height: 0;
height: 0;
overflow: hidden;
clear: both;
}
/*wrapin 主體容器寬度*/
.main {
width: 1200px;
margin-left: auto;
margin-right: auto;
}
/*公用CSS 開始*/
/*header 開始*/
.head{
background-color: rgba(255,255,255,1);
}
.logo{
width: 250px;
height: 100px;
}
.logo img{
width: 100%;
height: 100%;
object-fit: contain;
}
.nav ul li{
padding: 0 30px;
line-height: 110px;
}
.nav ul li a{
font-size:18px;
display: inline-block;
font-weight:bold
}
.nav ul li:hover{
background-color: #000;
}
.nav ul li:hover a{
color: #fff;
}
.banner{
margin-top: 0px;
}
.banner img{
width: 101%;
height: 700px;
display: block;
object-fit: cover;
}
.zuofu{
position: fixed;
left: 0;
top: 30%;
z-index: 99;
}
.zuofu img{
width: 100px;
height: 300px;
}
.zuofu1{
position: fixed;
right: 0;
top: 20%;
z-index: 99;
}
.zuofu1 img{
width: 100px;
height: 300px;
}
.zuofu1{
animation: myfirst 4s;
-moz-animation: myfirst 4s; /* Firefox */
-webkit-animation: myfirst 4s; /* Safari 和 Chrome */
-o-animation: myfirst 4s; /* Opera */
animation-iteration-count: infinite;
}
@keyframes myfirst
{
0% {top: 20%;}
25% {top: 22%;}
50% {top: 24%;}
75% {top: 22%;}
100% {top: 20%;}
}
.zuofu{
animation: myfirst1 4s;
-moz-animation: myfirst1 4s; /* Firefox */
-webkit-animation: myfirst1 4s; /* Safari 和 Chrome */
-o-animation: myfirst1 4s; /* Opera */
animation-iteration-count: infinite;
}
@keyframes myfirst1
{
0% {top: 20%;}
25% {top: 22%;}
50% {top: 24%;}
75% {top: 22%;}
100% {top: 20%;}
}
.list ul{
margin-left: -10px;
margin-right: -10px;
margin-top: 30px;
}
.list ul li{
width: 25%;
padding: 0 10px;
float: left;
box-sizing: border-box;
margin-bottom: 30px;
position: relative;
}
.list ul li .text{
width: 100%;
height: 30px;
text-align: center;
bottom: 0;
left: 0;
color:#000;
z-index: 2;
}
.list ul li .text h3{
padding-top: 5px;
}
.list ul li .pic{
width: 100%;
height: 200px;
overflow: hidden;
}
.list ul li .pic img{
width: 100%;
height: 100%;
display: block;
object-fit: cover;
-webkit-transition: all 0.3s;
-moz-transition: all 0.3s;
-o-transition: all 0.3s;
transition: all 0.3s;
}
.list ul li .pic img:hover{
transform:scale(1.1);-webkit-transform:scale(1.1); /*兼容-webkit-引擎瀏覽器*/-moz-transform:scale(1.1);
}
.titi {
text-align: center;
font-size: 30px;
color: #000;
font-weight: block;
padding: 20px 0;
}
.list ul li:hover .text{
display: block;
}
.jiesao p{
line-height: 22px;
font-size: 16px;
color: #000;
margin-top: 30px;
}
.foot{
width: 100%;
padding: 30px 0;
text-align: center;
color: #fff;
background-color: #000;
}
.banner-two img{
width: 100%;
height: 400px;
}
.zhengrong .left{
width: 100%;
color: #fff;
float: left;
font-size: 12px;
text-align: center;
font-size: 30px;
}
.zhengrong .left h3{
padding: 36px 0;
color: #CC3300;
}
.zhengrong .left p{font-size: 15px; padding: 10px 0;}
.zhengrong .img{
width: 100%;
float: left; text-align:center;
}
.zhengrong .img img{
margin: 10px;
width: 200px;
height: 200px;
}
.zhengrong ul li{
background-color: #111;
margin-top: 30px;padding-bottom: 30px;
}
.zhengrong ul li:hover{
background-color: #444;
}
.xiaoxiao ul{
margin-top: 50px;
}
.xiaoxiao ul li{
width: 25%;
float: left;
margin-bottom: 20px;
text-align: center;
}
.xiaoxiao img{
width: 80%;
height: 280px;
}
/**/
.divAll{
width:100%;
font-family:'黑體';
margin:50px auto;
margin-top:0
}
#titles{
font-weight:bold;
font-size:18px;
height:50px;
line-height:50px;
background:#FFF9F3;
text-align:center;
border:1px solid #CCC;;
}
#contents{
margin-top:0px;
}
#contents form{ width:500px; margin:0 auto}
#form-itemGroup{
padding:10px;
}
#form-itemGroup label{
display:inline-block;
width:100px;
height:32px;
line-height:32px;
color:#666;
text-align:right;
}
#form-itemGroup .userName{
width:320px;
height:40px;
line-height:40px;
border:1px solid #CCC;
}
#form-itemGroup .default{
width:240px;
height:32px;
line-height:32px;
color:#999;
}
#form-itemGroup .error{
height:32px;
line-height:32px;
color:#F00;
}
#form-itemGroup .success{
height:32px;
line-height:32px;
color:#096;
}
.divBtn{
margin-top:20px;
margin-left:114px;
width:322px;
height:42px;
line-height:42px;
background-color:#996666;
margin-bottom:10px;
color:#ffffff;
font-size:20px;
border:none;
}
.jiesao .left{
width: 100%;
}
.jiesao .left img{
width: 100%;
height: 650px;
}
.jiesao .rii{
width: 100%;
padding: 20px 20px;
box-sizing: border-box;
font-size: 20px;
line-height: 20px;
color: #333333;
}
.focus{height:600px;overflow:hidden; width:100%;position:relative;}
/* focus_s */
.focus_s{position:absolute;left:50%;bottom:5%;height:13px;overflow:hidden;width:110px;z-index:9;margin:0 0 0 -30px;}
.focus_s li{float:left;cursor:pointer;height:13px;width:12px;overflow:hidden;margin-right:10px;background:url(../images/dian.png) no-repeat;}
.focus_s li.active{background-position:-12px 0;}
/* focus_m */
.focus_m ul{opacity:1;filter:alpha(opacity=100);}
.focus_m li{width:100%;height:600px;position:absolute;top:0;left:0;}
/* focus_l focus_r */
.focus_l,.focus_r{position:absolute;display:block;width:50px;height:75px;overflow:hidden;z-index:2;top:250px;}
.focus_l{left:0;}
.focus_r{right:0;}
.focus_l b,.focus_r b{position:absolute;z-index:1;display:block;width:50px;height:75px;overflow:hidden;background:#000;opacity:0;filter:alpha(opacity=0);cursor:pointer;}
.focus_l span,.focus_r span{display:inline-block;position:relative;z-index:2;width:22px;height:36px;top:21px;cursor:pointer; margin-right:28px;}
.focus_l span{left:12px;background-image:url(../images/l.png); background-repeat:no-repeat;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/l.png');}
.focus_r span{left:16px;background:url(../images/r.png) 0 0 no-repeat; background-repeat:no-repeat;_background:none;_filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='images/r.png');}
四域醇、??更多源碼
【干貨分享】自學(xué)編程的小伙伴可以前往我的 gitee 倉庫(持續(xù)更新中...)
??【web學(xué)習(xí)指南】從web基礎(chǔ)台谊、計算機基礎(chǔ)到前端常用框架的教程蓉媳,涵蓋前端大部分必備知識(學(xué)習(xí)指南 + 技術(shù)文章 + 資源分享)