0
点赞
收藏
分享

微信扫一扫

HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)

📂文章目录

  • ​​二、📚网站介绍​​
  • ​​三、🔗网站效果​​
  • ​​▶️1.视频演示​​
  • ​​🧩 2.图片演示​​
  • ​​四、💒 网站代码​​
  • ​​🧱HTML结构代码​​
  • ​​🏠CSS样式代码​​
  • ​​五、🎁更多源码​​

二、📚网站介绍

📔网站布局方面:计划采用目前主流的、能兼容各大主流浏览器、显示效果稳定的浮动网页布局结构。

📓网站程序方面:计划采用最新的网页编程语言HTML5+CSS3+JS程序语言完成网站的功能设计。并确保网站代码兼容目前市面上所有的主流浏览器,已达到打开后就能即时看到网站的效果。

📘网站素材方面:计划收集各大平台好看的图片素材,并精挑细选适合网页风格的图片,然后使用PS做出适合网页尺寸的图片。

📒网站文件方面:网站系统文件种类包含:html网页结构文件、css网页样式文件、js网页特效文件、images网页图片文件;

📙网页编辑方面:网页作品代码简单,可使用任意HTML编辑软件(如:​​Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++​​​ 等任意html编辑软件进行运行及修改编辑等操作)。
其中:
(1)📜html文件包含:其中index.html是首页、其他html为二级页面;
(2)📑 css文件包含:css全部页面样式,文字滚动, 图片放大等;
(3)📄 js文件包含:js实现动态轮播特效, 表单提交, 点击事件等等(个别网页中运用到js代码)。

三、🔗网站效果

▶️1.视频演示

K21JP-NBA勒布朗詹姆斯篮球明星带js(5页)html+css+js

🧩 2.图片演示

HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_html


HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_html_02


HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_dreamweaver_03


HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_dreamweaver_04


HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_dreamweaver_05


HTML+CSS静态网页作业:NBA勒布朗詹姆斯篮球明星带js(5页)_dreamweaver_06

四、💒 网站代码

🧱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>
<link href="css/all.css" rel="stylesheet" media="all" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/koala.min.1.5.js"></script>

<title>网站首页</title>
</head>

<body>
<div class="banner"> </div>
<div class="menu">
<ul class="center">
<li><a href="index.html">网站首页</a></li>
<li><a href="jibenxinxi.html">基本信息</a></li>
<li><a href="gerenjilu.html">个人记录</a></li>
<li><a href="jingcaitupian.html">精彩图片</a></li>
<li><a href="huojiangjilu.html">获奖记录</a></li><li><a href="liuyan.html">作者留言</a></li>
</ul>
</div>
<div class="content">
<div class="left">
<div class="pics">
<!-- 代码 开始 -->
<!-- 代码 开始 -->
<div id="fsD1" class="focus">
<div id="D1pic1" class="fPic">
<div class="fcon" style="display: none;"> <a target="_blank" href="#"><img src="images/shouye_15.jpg" style="opacity: 1;"></a> </div>
<div class="fcon" style="display: none;"> <a target="_blank" href="#"><img src="images/big.jpg" style="opacity: 1;"></a> </div>
<div class="fcon" style="display: none;"> <a target="_blank" href="#"><img src="images/GetLargeImg1.jpg" style="opacity: 1;"></a> </div>
</div>
<div class="fbg">
<div class="D1fBt" id="D1fBt"> <a href="javascript:void(0)" hidefocus="true" target="_self" class=""><i>1</i></a> <a href="javascript:void(0)" hidefocus="true" target="_self" class=""><i>2</i></a> <a href="javascript:void(0)" hidefocus="true" target="_self" class="current"><i>3</i></a> </div>
</div>
<span class="prev"></span> <span class="next"></span> </div>
<script type="text/javascript">.add('widgets', { path: "js/terminator2.2.min.js", type: "js", requires: ['fx'] });
Qfast(false, 'widgets', function () {
K.tabs({
id: 'fsD1', //焦点图包裹id
conId: "D1pic1", //** 大图域包裹id
tabId:"D1fBt",
tabTn:"a",
conCn: '.fcon', //** 大图域配置class
auto: 1, //自动播放 1或0
effect: 'fade', //效果配置
eType: 'click', //** 鼠标事件
pageBt:true,//是否有按钮切换页码
bns: ['.prev', '.next'],//** 前后按钮配置class
interval: 3000 //** 停顿时间
})
})</script>

<!-- 代码 结束 -->
</div>
</div>
<div class="right">
<h4 class="mar">基本信息</h4>
<div class="produce">
勒布朗·詹姆斯(LeBron James),1984年12月30日出生在美国俄亥俄州阿克伦,美国职业篮球运动员,司职小前锋,绰号“小皇帝”,效力于NBA洛杉矶湖人队。<br />
勒布朗·詹姆斯在2003年NBA选秀中于首轮第1顺位被克利夫兰骑士队选中。2003-2010年,詹姆斯效力于骑士队,期间2次当选NBA最有价值球员(MVP)。2010年,詹姆斯转会至迈阿密热火队,与德怀恩·韦德、克里斯·波什组成“三巨头”阵容。2012年,詹姆斯得到NBA个人生涯的第3座常规赛MVP,第1个总冠军和总决赛MVP。 </p>
</div>
</div>
<div class="bar">图片</div>
<div class="pics scrollleft" >
<ul>
<li>
<p><img src="images/1.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/2.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/3.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/4.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/5.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/6.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/7.jpg" width="230" height="160"/></p>
</li>
<li>
<p><img src="images/8.jpg" width="230" height="160"/></p>
</li>
</ul>
<div class="clear"></div>
</div>

<div class="bar">留言板</div>
<div class="msg pad">
<div> <span class="fl">你的性别:</span>
<input type="radio" name="aa" />

<input type="radio" name="aa" />
</div>
<div> <span class="fl">留言主题:</span>
<input type="text" size="50" />
</div>
<div> <span class="fl">留言内容:</span>
<textarea style="width:400px" rows="5"></textarea>
</div>
<div> <span class="fl">提交留言:</span>
<input type="submit" value="提交" />
</div>
</div>
<div class="clear"></div>
</div>
<div class="end">
<p>版权所有 网址:www.xxxx.com</p>
</div>
<div class="clear"></div>
</body>
</html>

🏠CSS样式代码

@charset "utf-8";
/* CSS Document */
ul,li,h1,h2,h3,p{ padding:0; margin:0; list-style:none}
a{ text-decoration:none; color:#000}
html{ }
body{background:url(../images/timg.jpg) no-repeat center top #000; width:1000px; margin:0 auto; line-height:21px}
.clear{ clear:both}
.menu li{ list-style:none; font-weight:bold; text-decoration:underline}
.logo{ position:absolute; top:50px; width:250px; height:100px; margin-left:40px}
.banner{ position:relative; height:400px}

.menu{ width:100%; text-align:center; float:left; background:url(../images/menu.jpg)}
.menu li a{ background:#000; border:#fff solid 1px; padding:5px; color:#9F0}.menu li {float:left; padding:15px 30px ; width:100px}

.right{ float:right; width:460px; padding:20px}
.left{ min-height:250px; float:left; width:460px; padding:20px}
.content{ background:#fff; font-size:14px; display:inline-block ; width:100%}

.pics li{ float:left}
.end{ clear:both; background:#603; color:#fff; padding:30px 0; text-align:center;}
.produce img{ margin:0 20px 20px 0}
.produce {}
.pad{ padding:20px; display:block}
.pics p{ margin:2px; text-align:center}
.mar{ margin:5px 0}
.imglist{ width:840px; margin:0 auto}
.imglist li{ float:left; width:400px; margin:10px ; text-align:center}
.scrollleft{ margin:0 30px}
.news li{ padding:5px;}

.title{ text-align:center; color:#F00; padding:10px}
.fl{ float:left}
.js div{ width:100%; clear:both; margin-bottom:20px; float:left}

.js div img{ float:left; margin-right:20px}
.msg>div{ padding:10px}

.bar{ border:#000 solid 1px; margin:20px; clear:both; background:url(../images/menu.jpg); color:#9F0; text-decoration:underline; padding:5px}



.focus{ position:relative; width:470px; height:250px; background-color: #000; float: left;}
.focus img{ width: 470px; height: 250px;}
.focus .shadow .title{width: 260px; height: 65px;padding-left: 30px;padding-top: 20px;}
.focus .shadow .title a{ text-decoration:none; color:#fff; font-size:14px; font-weight:bolder; overflow:hidden; }
.focus .btn{ position:absolute; bottom:34px; left:510px; overflow:hidden; zoom:1;}
.focus .btn a{position:relative; display:inline; width:13px; height:13px; border-radius:7px; margin:0 5px;color:#B0B0B0;font:12px/15px "\5B8B\4F53"; text-decoration:none; text-align:center; outline:0; float:left; background:#D9D9D9; }
.focus .btn a:hover,.focus .btn a.current{ cursor:pointer;background:#fc114a;}
.focus .fPic{ position:absolute; left:0px; top:0px; }
.focus .D1fBt{ overflow:hidden; zoom:1; height:16px; z-index:10; }
.focus .shadow{ width:100%; position:absolute; bottom:0; left:0px; z-index:10; height:80px; line-height: 80px; background:rgba(0,0,0,0.6);
filter:progid:DXImageTransform.Microsoft.gradient( GradientType = 0,startColorstr = '#80000000',endColorstr = '#80000000')\9; display:block; text-align:left; }
.focus .shadow a{ text-decoration:none; color:#fff; font-size:20px; overflow:hidden; margin-left:10px; font-family: "\5FAE\8F6F\96C5\9ED1";}
.focus .fcon{ position:relative; width:100%; float:left; display:none; background:#000 }
.focus .fcon img{ display:block; }
.focus .fbg{bottom:25px; right:40px; position:absolute; height:21px; text-align:center; z-index: 200; }
.focus .fbg div{margin:4px auto 0;overflow:hidden;zoom:1;height:14px}
.focus .D1fBt a{position:relative; display:inline; width:12px; height:12px; border-radius:7px; margin:0 5px;color:#B0B0B0;font:12px/15px "\5B8B\4F53"; text-decoration:none; text-align:center; outline:0; float:left; background:#D9D9D9; }
.focus .D1fBt .current,.focus .D1fBt a:hover{background:#fc114a;}
.focus .D1fBt img{display:none}
.focus .D1fBt i{display:none; font-style:normal; }
.focus .prev,.focus .next{position:absolute;width:40px;height:74px;background: url(../images/focus_btn.png) no-repeat;}
.focus .prev{top: 50%;margin-top: -37px; left: 0;background-position:0 -74px; cursor:pointer; }
.focus .next{top: 50%;margin-top: -37px; right: 0; background-position:-40px -74px; cursor:pointer;}
.focus .prev:hover{ background-position:0 0; }
.focus .next:hover{ background-position:-40px 0;}

五、🎁更多源码

1.如果我的博客对你有帮助 ​​请 “👍点赞” “✍️评论” “💙收藏” ​​一键三连哦!

2.​​💗【👇🏻👇🏻👇🏻🉑关注我| 获取更多源码】 ​​带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、等!

📣以上内容技术相关问题💌欢迎一起交流学习👇🏻👇🏻👇🏻


举报

相关推荐

0 条评论