大二学生JavaScript实训大作业——动漫秦时明月7页 期末网页制作 HTML+CSS+JavaScript 网页设计实例 企业网站制作

news2024/10/7 6:47:34

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


⚽精彩专栏推荐👇🏻👇🏻👇🏻

【作者主页——🔥获取更多优质源码】
【web前端期末大作业——🔥🔥毕设项目精品实战案例(1000套)】


文章目录🌰

  • 一、网页介绍📖
  • 一、网页效果🌌
  • 二、代码展示😈
    • 1.HTML代码结构 🧱
    • 2.CSS样式代码 🏠
  • 三、个人总结😊
  • 四、更多干货🚀

一、网页介绍📖

1 网页简介:此作品为学生个人主页网页设计题材,HTML+CSS 布局制作,web前端期末大作业,大学生网页设计作业源码,这是一个不错的网页制作,画面精明,代码为简单学生水平, 非常适合初学者学习使用。

2.网页编辑:网页作品代码简单,可使用任意HTML编辑软件(如:Dreamweaver、HBuilder、Vscode 、Sublime 、Webstorm、Text 、Notepad++ 等任意html编辑软件进行运行及修改编辑等操作)。

3.知识应用:技术方面主要应用了网页知识中的: Div+CSS、鼠标滑过特效、Table、导航栏效果、Banner、表单、二级三级页面等,视频、 音频元素 、Flash,同时设计了Logo(源文件)所需的知识点。


一、网页效果🌌

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述


二、代码展示😈


1.HTML代码结构 🧱

代码如下(示例):以下仅展示部分代码供参考~

<!DOCTYPE html>
<html xmlns:style="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <link href="css/style.css" rel="stylesheet" type="text/css">

    <meta name="author" content="吴祖涛">
    <meta name="keywords" content="秦时明月,天行九歌,历史">
    <meta name="description" content="以动漫为主线、历史为辅线">
    <meta name="robots" content="index,follow">
    <style type="text/css">
        body {
            background-image:url('picture/bg5.png'),url('picture/bg_xx.gif');
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100% 100%;
        }
    </style>
    <script type="text/javascript" src="js/main.js"></script>
    <script type="text/javascript" src="js/js_zz.js"></script>
    <script type="text/javascript" src="js/js_zz.js"></script>
    <!--切换广告js-->
    <script>
        window.onload = function () {
            var dots = document.getElementById("dots").getElementsByTagName("li"); //获取"dot"数组
            var imgList = document.getElementById("imgList").getElementsByTagName("img"); //获取图像数组
            var back = document.getElementById("back"); //返回按钮
            var go = document.getElementById("go"); //前进按钮

            var dotslen = dots.length;
            var opacity = new Array(dotslen); //透明度,每个"图片"的透明度
            for (var i = 0; i < opacity.length; i++) //将透明度初始化为0
                opacity[i] = 0;

            var nowIndex = 0; //当前要轮播的图片下标
            var loop = null; //轮播计时器
            var loop0 = new Array(opacity.length); //over计时器
            var loop1 = new Array(opacity.length); //leave计时器

            changeImgeOver(dots[nowIndex], "初始"); //初始轮播nowIndex图片
            setDotOver(dots[nowIndex++]);
            GO(); //开始轮播

            /* 轮播方法 */
            function GO() {
                if (loop != null) {
                    clearInterval(loop); //清理之前残留的loop,以免出现bug
                }
                loop = setInterval(function () {
                    setDotLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen -
                        1]);
                    changeImgeLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1],
                        "轮播减少"); //nowIndex之前的图片透明度减少
                    for (var i = 0; i < dotslen; i++) {
                        console.log(i + "透明度" + opacity[i]);
                    } //暗中观察
                    console.log("-------");
                    setDotOver(dots[nowIndex]);
                    changeImgeOver(dots[nowIndex], "轮播增加"); //轮播nowIndex图片

                    nowIndex = nowIndex >= dotslen - 1 ? 0 : nowIndex + 1; //轮播下一个图片
                }, 1000);
            }
            /* 设置每个"dot"的触摸事件 */
            for (var i = 0; i < 5; i++) {
                //  console.log(dots.indexOf(dots[i]));
                ! function (arg) {
                    dots[arg].addEventListener("mouseover", function () {
                        setDotLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen -
                            1]);
                        changeImgeLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1], "鼠标点击后退");
                        //设置nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1图片透明度为0
                        clearInterval(loop); //暂停轮播loop以免出现bug
                        nowIndex = arg; //将当前轮播下标变成选择的"dot"下标
                        changeImgeOver(this, "鼠标放上增加"); //显示选择的轮播
                        setDotOver(this);
                        nowIndex = nowIndex == dotslen - 1 ? 0 : nowIndex + 1;
                    }); //放上去的事件
                    dots[arg].addEventListener("mouseout", function () {
                        setDotLeave(this);
                        GO(); //启动轮播loop
                    }); //移出来的事件
                }(i);
            }
            /* 设置后退按钮 */
            back.addEventListener("click", function () { //回退到nowindex下标之前二个

                setDotLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen -
                    1]); //设置nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1轮播原始化
                changeImgeLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1], "鼠标点击前进");
                clearInterval(loop); //暂停轮播loop
                nowIndex = nowIndex - 2 >= 0 ? (nowIndex - 2) : (dotslen - (2 - nowIndex));
                // console.log("--------");
                console.log("回退到" + nowIndex);
                console.log("-------");
                setDotOver(dots[nowIndex]); //显示后退到的轮播图
                changeImgeOver(dots[nowIndex], "back按键");
                nowIndex = nowIndex >= dotslen - 1 ? 0 : nowIndex + 1; //设置轮播的下标
                setTimeout(() => { //隔500毫秒后启动轮播
                    GO();
                }, 500);
            });
            back.addEventListener("mouseover", function () { //放上去时的特效
                this.style.opacity = 0.5;
            });
            back.addEventListener("mouseleave", function () {
                this.style.opacity = 0.1;
            })

            /* 设置前进按钮 */
            go.addEventListener("click", function () { //其实就是无延时的GO了一下

                setDotLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen -
                    1]); //设置nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1轮播原始化
                changeImgeLeave(dots[nowIndex - 1 >= 0 ? nowIndex - 1 : dotslen - 1], "鼠标放上减少");
                clearInterval(loop); //暂停轮播loop
                console.log("前进到" + nowIndex);
                console.log("-------");
                setDotOver(dots[nowIndex]); //显示后退到的轮播图
                changeImgeOver(dots[nowIndex], "back按键");
                nowIndex = nowIndex >= dotslen - 1 ? 0 : nowIndex + 1; //设置轮播的下标
                setTimeout(() => { //隔500毫秒后启动轮播
                    GO();
                }, 500);;
            });
            go.addEventListener("mouseover", function () {
                this.style.opacity = 0.5;
            });
            go.addEventListener("mouseleave", function () {
                this.style.opacity = 0.1;
            })

            /* 给图片增加透明度的方法 */
            function changeImgeOver(Q, K) {
                var index = getIndex(dots, Q); //获取下标
                clearInterval(loop1[index]);
                loop0[index] = setInterval(changeOpacity0, 10); //开始增加透明度

                function changeOpacity0() {
                    if (opacity[index] >= 1) {
                        opacity[index] = 1; //
                        clearInterval(this); //如果透明度大于等于1停止增加透明度
                    } else {
                        opacity[index] += 0.02; //改变透明度
                        // console.log("这是" + K + "计时器" + index + "透明度" + opacity[index]); //暗中观察
                        imgList[index].style.opacity = opacity[index]; //设置图片透明度属性
                    }
                }
            }
            /* 给图片减少透明度的方法 */
            function changeImgeLeave(Q, K) {
                var index = getIndex(dots, Q); //获取下标
                clearInterval(loop0[index]); //停止增加透明度
                loop1[index] = setInterval(changeOpacity1, 10); //设置计时器开始减少透明度
                function changeOpacity1() {
                    if (opacity[index] <= 0) {
                        opacity[index] = 0;
                        clearInterval(this); //如果透明度少于等于0停止减少透明度
                    } else {
                        opacity[index] -= 0.02; //减少透明度
                        // console.log("这是" + K + "号计时器" + index + "透明度" + opacity[index]); //暗中观察
                        imgList[index].style.opacity = opacity[index]; //设置图片的透明度属性
                    }
                }
            }

            function getIndex(objArr, obj) { //获取obj在objarr的下标
                for (var i = 0; i < objArr.length; i++)
                    if (objArr[i] == obj)
                        return i;
            }

            function setDotOver(Q) { //设置"dot"的颜色
                Q.style.background = "#fff";
                Q.style.fontcolor = "#eee8aa";
            }

            function setDotLeave(Q) { //设置"dot"的颜色
                Q.style.background = "#b7b7b7";
                Q.style.fontcolor = "#fff";
            }
        }
    </script>
</head>

<body>

<!--页眉:logo-->
<div id="header-wrapper">
    <!--网站logo-->
    <header class="container" id="advaddr">
        <div id="logo">
            <a href=""></a>

        </div>

    </header>

</div>

<!--天下大势,浩浩荡荡,顺之者昌,逆之者亡!-->
<div class="container">
    <div id="tianxia">
        <img src="picture/logo4.png">
    </div>
</div>

<!--菜单导航-->
<div>
        <div id="nav2">
            <ul>
                <li><a href="" target="_blank">首页</a>
                <li><a href="tianxingjiuge.html" target="_blank">天行九歌</a>
                <li><a href="qinshimingyue.html" target="_blank">秦时明月</a>
                <li><a href="zhanguoqixiong.html" target="_blank">战国七雄</a>
                <li><a href="zhuzibaijia.html" target="_blank">诸子百家</a>
                <li><a href="end.html" target="_blank">成王败寇</a>
            </li></ul>
        </div>
</div>

<!--制作空白-->
<div id="caidan_tupianqiehuan_liubai"></div>

<!--内容-->
<div id="content-wrapper" class="container">

    <!--介绍天行九歌-->
    <aside>

    <section class="aside-section">
        <h2 id="title4">视频介绍</h2>
        <iframe src="player.html" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
    </section>

</aside><article>
        <h2 id="title1">动漫简介</h2>
        <section class="recommend">
            <h3>天行九歌</h3>
            <a href="#"><img src="picture/figure(54).jpg" alt="天行九歌"></a><div class="recommend-content">
            <p>《天行九歌》,是由中国3D动画《秦时明月》系列
                原制作团队杭州玄机科技信息技术有限公司打造的姐妹
                篇网络3D动画,两作在剧情上互通,但在品牌上各自独立。
            </p>
            <p>该动画以韩国公子韩非建立的“流沙”组织为主视角,展开六国
                对抗秦国的众生百态,使观众进入战国末年风起云涌、群雄并起、
                百家争鸣的大时代中的故事。
            </p>
        </div>
            <div class="cartmore"><a class="cart" href="tianxingjiuge.html">进入世界</a>
                </div>
        </section>
    </article>

    <!--介绍秦时明月-->
    <aside>
            <section class="aside-section">
                <iframe src="player.html" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
            </section>
        </aside><article>
            <section class="recommend">
        <h3>秦时明月</h3>
        <a href="#"><img src="picture/figure(14)1.jpg" alt="秦时明月"></a>
        <div class="recommend-content">
            <p>《秦时明月》系列是由中国杭州玄机科技信息技术有限公司制作的3D武侠动画系列,
                于2007年春节期间起在中国全国各地正式首映,网络上亦有授权播出。另有衍生出
                的仅在网络、不在电视播出的姐妹篇《天行九歌》等 [1]  目前动画已完结前5部,
                共175集。第6部《秦时明月之沧海横流》已上映序章。
            </p>
            <p>
                《秦时明月》系列是由中国杭州玄机科技信息技术有限公司制作的3D武侠动画系列
                ,于2007年春节期间起在中国全国各地正式首映,网络上亦有授权播出。另有衍生出
                的仅在网络、不在电视播出的姐妹篇《天行九歌》等 [1]  目前动画已完结前5部,共1
                75集。第6部《秦时明月之沧海横流》已上映序章。
            </p>
        </div>
        <div class="cartmore"><a class="cart" href="qinshimingyue.html">进入世界</a>
            </div>
    </section>
        </article>


    <!--连环滚动战国七雄-->
    <div class="pro_gd">
        <div id="marquee1" class="marqueeleft">
            <div class="mar_m clearfix">
                <ul id="marquee1_1">
                    <li>
                        <a class="pic" href=""><img src="picture/figure(1).jpg" alt="产品名称" title="齐国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(9).jpg" alt="产品名称" title="楚国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(19).jpg" alt="产品名称" title="燕国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(15).jpg" alt="产品名称" title="赵国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(14).jpg" alt="产品名称" title="韩国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(42).jpg" alt="产品名称" title="魏国"></a>
                    </li>
                    <li>
                        <a class="pic" href=""><img src="picture/figure(49).jpg" alt="产品名称" title="秦国"></a>
                    </li>
                </ul>
                <ul id="marquee1_2"></ul>
            </div>
        </div>
        <script type="text/javascript">marqueeStart(1, "left");</script>
    </div>
    <!--介绍战国七雄-->
    <div id="zhanguoqixiong">
        <section class="recommend1">
            <h3>战国七雄</h3>
            <div class="recommend-content1">
            <p>战国七雄是中国古代战国时期七个较强的诸侯国的统称。春秋时
                期和战国时期无数次兼并战争使诸侯国的数量从数百减少到数十。
                到战国后期,仅剩下七个实力较强的周天子分封或自立的诸侯国,
                分别为燕、秦、楚、齐(田齐)、韩、赵、魏,合称为“战国七雄”
                    。常与春秋五霸并称。
            </p>
            <p>在这七雄之中,以秦中后期国力最强,齐国在战国中期崛起,并一度与
                秦国并列为东西二帝,韩最弱小,魏都大梁最壮观,赵国多名将,燕
                与中原来往甚少,楚国领土广阔。除秦国以外,其余六国均在崤山以东
                。因此该六国又称“山东六国”。前230年,秦灭韩,开启了统一六国的序
                幕。燕太子丹谋刺秦王政失败导致身死国灭后,公元前221年,秦军围临
                淄灭齐,结束战国群雄割据。
            </p>
        </div>
            <div class="cartmore"><a class="cart" href="zhanguoqixiong.html">进入世界</a>
                </div>
        </section>
    </div>

    <!--连环滚动诸子百家-->
    <div class="container">
        <!--最下面轮播画面-->
        <div id="demow" class="zhuzibaijia_gundong" style="overflow:hidden;height:150px; width:1000px; margin-left:0px;">
            <table width="1000" border="0" align="left" cellpadding="0" cellspacing="0">
                <tr><td width="1000" height="146" id="demow1"><table width="99%" height="127" border="0" cellpadding="0" cellspacing="0">
                <tr><td width="160" align="center" valign="top"><table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA">
                <tr><td align="center" bgcolor="cyan"><table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                 <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=51" title="儒家">
     <img src="picture/q_1.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s11.jpg" alt="样品展示" width="240" height="200" border="0"></a>
<!--儒家-->
                                    </td>
                                </tr>
                                </table>

                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td width="160" height="23" align="center">
<!--                                        <a href="equ01.asp-id=51.htm" tppabs="http://www.yangpanfz.com/equ01.asp?id=51" class="yy" title="样品展示">儒家</a>-->
                                            <p id="title3"><strong>儒家</strong></p>
                                    </td></tr>
                                </table>

                            </td></tr></table>


                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">

                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#00578a"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=50" title="样品展示">
      <img src="picture/q_2.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s10.jpg" alt="样品展示" width="240" height="200" border="0"></a></td></tr></table>
<!--墨家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>墨家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=49" title="设备展示">
      <img src="picture/q_3.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s9.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--阴阳家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>阴阳家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=48" title="设备展示">
     <img src="picture/q_4.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s8.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--兵家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>兵家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=47" title="设备展示">
    <img src="picture/q_5.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s7.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--道家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>道家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=46" title="设备展示">
     <img src="picture/q_6.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s6.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--纵横家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>纵横家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=45" title="设备展示">
    <img src="picture/q_7.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s5.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--法家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>法家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=44" title="设备展示">
    <img src="picture/q_8.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s4.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--农家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>农家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=43" title="设备展示">
     <img src="picture/q_9.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s3.jpg" alt="设备展示" width="240" height="200" border="0"></a></td></tr></table>
<!--名家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>名家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=42" title="样品展示">
    <img src="picture/q_11.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s2.jpg" alt="样品展示" width="240" height="200" border="0"></a></td></tr></table>
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center"><p id="title3"><strong>杂家</strong></p></td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td><td width="160" align="center" valign="top">
                            <table width="160" border="0" cellpadding="0" cellspacing="1" bgcolor="#EAEAEA"><tr><td align="center" bgcolor="cyan">
                                <table width="100%" height="100" border="0" cellpadding="0" cellspacing="0">
                                    <tr><td align="center"><a href="javascript:;" tppabs="http://www.yangpanfz.com/equ01.asp?id=41" title="样品展示">
    <img src="picture/q_10.jpg" tppabs="http://www.yangpanfz.com/UploadFile/s1.jpg" alt="样品展示" width="240" height="200" border="0"></a></td></tr></table>
<!--医家-->
                                <table width="160" height="10" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
                                    <td width="160" height="23" align="center">                                            <p id="title3"><strong>医家</strong></p>
                                    </td>
                                </tr></table>
                            </td>
                            </tr></table>
                        </td><td>&nbsp;</td>
                        </tr>
                        </table></td>
                    <td width="1" id="demow2"></td>
                </tr>
            </table>
        </div>
        <script>
            var speedw=20
            demow2.innerHTML=demow1.innerHTML
            function Marqueew(){
                if(demow2.offsetWidth-demow.scrollLeft<=0)
                    demow.scrollLeft-=demow1.offsetWidth
                else{
                    demow.scrollLeft++
                }
            }
            var MyMarw=setInterval(Marqueew,speedw)
            demow.onmouseover=function() {clearInterval(MyMarw)}
            demow.onmouseout=function() {MyMarw=setInterval(Marqueew,speedw)}
        </script>
    </div>
    <!--介绍诸子百家-->
    <div id="zhuzibaijia">
        <section class="recommend1">
            <h3>诸子百家</h3>
            <div class="recommend-content1">
                <p>诸子百家,是对先秦时期各学术派别的总称。据《汉书·艺文志》的记
                    载,数得上名字的一共有189家,4324篇著作。其后的《隋书·经籍志》
                    《四库全书总目》等书则记载“诸子百家”实有上千家。但流传较广、影
                    响较大、最为著名的不过几十家而已。归纳而言只有12家被发展成学派。
                </p>
                <p>诸子百家之流传中最为广泛的是法家、道家、墨家、儒家、阴阳家、名家、
                    杂家、农家、小说家、纵横家、兵家、医家。中国在古代创造了灿烂的文
                    化艺术,具有鲜明的特色。中国有五千多年有文字可考的历史,文化典籍极其丰富。
                </p>
                <p>
                    在春秋战国时期,各种思想学术流派的成就,与同期古希腊文明相辉映;以
                    孔子、老子、墨子为代表的三大哲学体系,形成诸子百家争鸣的繁荣局面。几
                    经周折以孔子、孟子为代表的儒家思想在宋朝时期全面上位;同时,程度不同地
                    影响其他少数民族,甚至影响到与中国相邻的国家。
                </p>
            </div>
            <div class="cartmore"><a class="cart" href="zhuzibaijia.html">进入世界</a>
                </div>
        </section>
    </div>
</div>


<!--页脚-->
<div class="rz_bw_nav002_m" id="footer-wrapper">
    <!--页脚导航-->
    <footer class="container">
        <section>
            <a href="">首页</a>
            <a href="tianxingjiuge.html">天行九歌</a>
            <a href="qinshimingyue.html">秦时明月</a>
            <a href="end.html">成王败寇</a>
            <a href="about.html">关于</a>

        </section>
    </footer>
</div>

<!--版权标志-->
<section id="copyright" class="container">
    Copyright (C) 
</section>

</body>
</html>




2.CSS样式代码 🏠

===========================================================================================*/
.container{ width: 1000px;margin: 0 auto;}


*{padding: 0px; margin: 0px;}
#content-wrapper article{width: 660px;display: inline-block;vertical-align: top;margin-right: 10px;}
#content-wrapper aside{width: 300px;display: inline-block;vertical-align: top;}


/*æ ‡é¢˜*/
h2[id^="title"]{
    color:#734633; margin-top: 5px; padding-bottom: 5px;
    background-image:url(http://www.ylcp.shop/files/files/1652955176660/css/images/bullet.png);
    background-repeat:no-repeat;padding-left:30px;
    border-bottom: 1px solid #834524;
}
#title1 {background-position:0 -3px;}
#title2 {background-position:0 -38px;}
#title3 {background-position:0 -68px;}
#title4 {background-position:0 -98px;}
#title5 {background-position:0 -128px;}
#title6 {background-position:0 -155px;}
#title7 {background-position:0 -182px;}
/*文本*/

    height:250px;
    /*padding:50px;*/
    /*border:1px solid #000;*/
    border:none;
    position: relative;
    margin:0px auto;
}
#tianxia img{
    width: 700px;
    height: 250px;
}
/*图片切换==========================================================================================================*/
/*秦时明月、天行九歌图片切换*/
#banner h3, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}
/*主容器*/
#banner {
    width: 750px;
    /*和下面div内容的高度*/
    height: 360px;
    /*margin-left: 280px;*/
    /*margin-top: 10px;*/
    position: relative;
    cursor: pointer;
    /*这是居中的命令*/
    margin:0px auto;
}
/*黑框*/
.dd{
    width:650px;
    height:290px;
    /*padding:10px;*/
    border:1px solid cyan;
    margin:0 auto;
    position: relative;left: 50px;right: 50px;
}
/*图片和文字之间的空白距离*/
#imgList {
    width: 820px;
    height: 300px;
    overflow: hidden;
}

#imgList li {
    position: absolute;
    top: 0;
    left: 0;

}
#imgList li img {
    /* display: none; */
    opacity: 0;
    width: 650px ;
    height:290px;
    margin: 0 auto;
    vertical-align:middle;
}
/*下面的滚动文字*/
#dots li {
    width: 125px;
    height: 30px;
    text-align: center;
    /*line-height: 40px;*/
    float: left;
    margin-right: 0px;
    background: #F5D56C;
}
/*左边的竖条*/
#back {
    height: 294px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    background: #00578a;
    opacity: 0.1;
}
/*右边的竖条*/
#go {
    height: 294px;
    text-align: center;
    position: absolute;
    right: 0;
    top: 0;
    background: #00578a;
    opacity: 0.1;
}
/*箭头*/
#back span {line-height: 290px;font-size: 40px;}
#go span {line-height: 290px;font-size: 40px;}
.dots li span {font-size: 80px;}
/*右边历史时期===============================================================================================*/
/*å³è¾¹è¾¹æ åŒºå›¾ä¹¦åˆ†ç±»å’Œåˆä½œä¼™ä¼´å†…å®¹æ°´å¹³å‘ˆçŽ°ã€‚*/
.aside-section{width: 180px;display: inline-block;vertical-align: top;margin-right: 5px;}
.aside-section li a {text-decoration:none;color:#000;}
.aside-section a:hover {text-decoration:none;color:#d78849;}
.aside-section ul{margin: 10px 0 10px 20px;}

/*页脚=======================================================================================================*/
.rz_bw_nav001_m{
    clear:both;
    width:100%;
    height:50px;
    background-color:#00578a;
    margin: 0 auto;
    margin-top: 30px;

}
#footer-wrapper{ background-color:#F5D56C; height: 50px;}
footer section{float: right;}
#copyright{color: #000000;text-align:center;font-size: 1.6em; margin-bottom: 60px}
footer a {display:block;float:left;color:#000000;text-decoration:none;width:100px;text-align:center;line-height: 60px;font-size: 1.6em;}
#copyright a {text-decoration:none;color:#000;}
#copyright a:hover {text-decoration:none;color:#d78849;}

.effect-1 img{vertical-align: middle; width: 290px;}
.text-desc{position: absolute;left: 0px; top:0px;height: 100%; width: 88%;margin-bottom:25px;padding: 10px 10px 10px 18px; opacity: 0; z-index:-1;}
.effect-1{position: relative; overflow: hidden;border: 1px solid rgba(255, 0, 0, 0.3); perspective: 800px;}
.effect-1:hover .image-box{transform: rotateX(75deg);transition: 1s; transform-origin: center bottom;}
.effect-1:hover .text-desc{opacity: 1;transition: 2s;}
.btn{display: inline-block; padding: 2px 10px; font-size: 14px; color: #fff; border: 1px solid #FF0000; background-color: #FF0000; text-decoration: none; transition: 0.4s;}
.btn:hover{background-color: transparent; color: #FF0000; transition: 0.4s;}
/*畅销图书*/
#best-selling li:before{content: counter(listxh);background: #7b5830;padding: 2px 5px;color: #fff;margin-right: 5px;vertical-align: top;}
#best-selling li{
    counter-increment: listxh;display: inline-block;
    width: 100%;vertical-align: bottom;
    overflow: hidden; white-space: nowrap;
    text-overflow: ellipsis;margin-top: 8px;
    transition:text-shadow 1s linear;
    border-bottom:#CCC dashed 1px;
}
#best-selling .curr .p-img{display: inline-block;}
#best-selling .curr .p-name{display: inline-block; vertical-align: top;}
#best-selling .curr .p-name strong{display: block; color:#FF0000; text-align:left; margin-top: 20px; font-size: 1.4em;}
#best-selling .curr .p-name del{font-size: 1.4em;font-weight: 900;}
#best-selling .curr{display: none;}
#best-selling a{color: #000000;text-decoration: none; font-size: 1.6em;}
#best-selling li:hover{text-shadow: 1px 4px 4px #000;}
#best-selling li:hover .selling{display:none;}
#best-selling li:hover .curr{display:inline-block;}

/*Chapter13*/
/*水平导航菜单*/
nav ul li{display: inline-block;}
nav ul a{
    display: inline-block;
    line-height: 60px; width: 100px;text-align: center;
    border-right: solid 1px #834524;
    color: #ffffff;text-decoration: none;font-size:1.8em;
    transition:background 0.5s linear;
}
nav ul a:hover{background-color: #834524;}


/*Chapter14*/
/*面包屑导航*/
.crumb-nav{font-size: 1.4em; margin: 5px 0px;}
.crumb-nav a{text-decoration:none;color:#000;font-size: 1em;}
.crumb-nav a:hover, .crumb-nav a:visited{color:#d78849;}
/*书籍分类页面category.html*/
.piclist ul{display: flex; }
.piclist li { text-align: center;margin:10px 5px;}
.piclist li img{width:192px; border-radius: 10px;transition:all 1s ease; border: 1px solid #834524;}
.piclist li:nth-child(3n+1){margin-left: 10px;}
.piclist li:nth-child(3n+3){margin-right: 10px;}
.piclist li:hover img{transform:scale(1.1);}
/*分页导航*/
#pagebar {text-align:right; margin-top:10px; margin-right:10px;}
#pagebar a {font-size:1.6em;text-decoration:none;color:#FFF;background-color: #a05c39;display:inline-block;width:25px;height:25px; text-align: center;color: #FFFFFF;transition:all 0.5s ease;padding-top: 3px; }
#pagebar a:hover {z-index:100;opacity:.5;transform:scale(1.1);}
#pagebar .arrow{width: 60px;}

/*特刊降价页面specials.html*/
.specials{border-bottom:#CCC dashed 1px;border-top:#CCC dashed 1px;margin: 10px 0px;display: flex;padding: 10px; transition:background-color 1s ease;}
.specials a{display: block;vertical-align:bottom;}
.specials img{width: 160px; height: 160px;}
.specials div h3{text-align: center;}
.specials div strong{color: #FF0000;}




三、个人总结😊

一套合格的网页应该包含(具体可根据个人要求而定)

  1. 页面分为页头、菜单导航栏(最好可下拉)、中间内容板块、页脚四大部分;
  2. 所有页面相互超链接,可到三级页面,有5-10个页面组成;
  3. 页面样式风格统一布局显示正常,不错乱,使用Div+Css技术;
  4. 菜单美观、醒目,二级菜单可正常弹出与跳转;
  5. 要有JS特效,如定时切换和手动切换图片新闻;
  6. 页面中有多媒体元素,如gif、视频、音乐,表单技术的使用;
  7. 页面清爽、美观、大方,不雷同。
  8. 网站前端程序不仅要能够把用户要求的内容呈现出来,还要满足布局良好、界面美观、配色优雅、表现形式多样等要求。

四、更多干货🚀

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

2.❤️【关注我| 获取更多源码 | 优质文章】 带您学习各种前端插件、3D炫酷效果、图片展示、文字效果、以及整站模板 、大学生毕业HTML模板 、期末大作业模板 、等! 「在这里有好多 前端 开发者,一起探讨 前端 Node 知识,互相学习」!

3.以上内容技术相关问题😈欢迎一起交流学习🔥在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/46930.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【JavaScript预解析】

JavaScript预解析1 本节目标2 预解析3 变量预解析和函数预解析4 预解析案例1 本节目标 知道解析器运行JS分为哪两步说出变量提升的步骤和运行过程说出函数提升的步骤和运行过程 2 预解析 JavaScript代码是由浏览器中的JavaScript解析器来执行的。JavaScript解析器在运行Java…

技术解读倚天 ECS 实例 — Arm 芯片的 Python-AI 算力优化

深度学习技术在图像识别、搜索推荐等领域得到了广泛应用。近年来各大 CPU 厂商也逐渐把 AI 算力纳入了重点发展方向&#xff0c;通过《Arm 芯片 Python-AI 算力优化》我们将看到龙蜥社区 Arm 架构 SIG&#xff08;Special Interest Group&#xff09; 利用最新的 Arm 指令集优化…

分析实时云渲染在小程序中可行性应用

点量云小芹和大家分享过很多实时云渲染的优势&#xff0c;比如在网页直接打开&#xff0c;本地无需任何算力支持&#xff0c;所有指令的执行均是在云端服务器上完成的。但在实际中小芹发现很多业主也想在小程序给用户更好的体验&#xff0c;尤其是一些To C的场景下&#xff0c;…

【新知实验室 认识TRTC+四步跑通音视频demo】

1【产品功能介绍】 1.1 什么是TRTC&#xff1f; 实时音视频&#xff08;Tencent RTC &#xff09;是腾讯基于21年来在网络与音频技术上的深度积累&#xff0c;以多人音视频通话和低延时互动直播两大场景化方案&#xff0c;通过腾讯云服务向开发者开放&#xff0c;致力于帮助开…

LabVIEW创建类 2

LabVIEW创建类 2 定义私有数据控件 创建LabVIEW类时&#xff0c;LabVIEW将自动创建类的私有数据控件。请注意在下列项目浏览器窗口中&#xff0c;LabVIEW类的图标是一个有色立方体。该立方体用于代表一个LabVIEW类。私有数据控件的图标是一个带有绿色圆柱体的有色立方体。圆柱…

SpringCloud 从入门到入土

springcloud包含的模块&#xff1a; 1、服务注册与发现 2、服务调用 3、服务熔断 4、负载均衡 5、服务降级 6、服务消息队列 7、配置中心管理 8、服务网关 9、服务监控 10、全链路追踪 11、自动化构建部署 12、服务定时任务调度操作 版本控制留样 重点技术选型&am…

ConstraintLayout布局扩展

相信大家对ConstraintLayout&#xff08;约束布局&#xff09;不陌生,这是google推出的一个强大控件&#xff0c;之所以强大其实主要归纳有两点&#xff1a;减少布局层次&#xff0c;能够轻松实现复杂布局。当然在我们实际使用过程中&#xff0c;是否真的减少了布局层次&#x…

一种亮红色染料AF 594 NHS Ester|295348-87-7|AF 594 Succinimidyl Ester

基础产品数据&#xff08;Basic Product Data&#xff09;&#xff1a; CAS号&#xff1a;295348-87-7 中文名&#xff1a;AF 594活性酯 英文名&#xff1a;AF 594 Succinimidyl Ester&#xff0c;Alexa Fluor 594 NHS Ester&#xff0c;AF 594 NHS Ester 光谱图&#xff08;Sp…

低代码助力生产管理:ERP生产管理系统

随着国内生产技术的迅速发展&#xff0c;企业信息化实现了生产经营活动的运营自动化、管理网络化和决策智能化。其中运营自动化是基础&#xff0c;决策智能化是顶峰。将信息化应用于生产管理有助于提高产品的质量和生产效率&#xff0c;加强对原材料、生产工序、员工、设备和产…

第三十九篇 自定义指令 - directive

前面讲了关于在Vue中如何来进行封装swiper组件的内容&#xff0c;本篇内容讲到使自定义组件&#xff0c;讲这块内容也是同样为了后续再次回顾封装swiper组件变化做铺垫内容&#xff0c;那么什么是自定义指令&#xff0c;在前面的内容讲过了好些常用的指令&#xff0c;如 v-modl…

记录--两行CSS让页面提升了近7倍渲染性能!

这里给大家分享我在网上总结出来的一些知识&#xff0c;希望对大家有所帮助 前言 对于前端人员来讲&#xff0c;最令人头疼的应该就是页面性能了&#xff0c;当用户在访问一个页面时&#xff0c;总是希望它能够快速呈现在眼前并且是可交互状态。如果页面加载过慢&#xff0c;你…

衡师11月月赛web题目wp

目录 1.丢三落四的学姐 2.wep&#xff1f;Pwn&#xff01;&#xff01;&#xff01; 这题web部分是buuctf中的DASCTF X GFCTF 2022十月挑战赛&#xff01;的原题 1.丢三落四的学姐 访问题目位置&#xff0c;很明显的phpstudy搭建的痕迹 访问一下经常信息泄露的几个文件&…

Redis与数据库的爱恨纠葛

Redis 是完全开源的&#xff0c;遵守 BSD 协议&#xff0c;是一个高性能的 key-value 数据库。 早期数据库只要有数据库的操作---增--删--改--查 当用户量特别多的情况下&#xff0c;数据库的数量一定是跟不上用户的数量&#xff0c;对数据库来说是特别繁忙的 看着每天都累趴下…

String_JavaScript

String_JavaScript 学习路线&#xff1a;JavaScript基础语法&#xff08;输出语句&#xff09;->JavaScript基础语法&#xff08;变量&#xff09;->JavaScript基础语法&#xff08;数据类型&#xff09;->JavaScript基础语法&#xff08;运算符&#xff09;->Jav…

海外推广运营的技巧汇总

海外电商运营推广&#xff1f;做海外电商&#xff0c;重点在于运营推广。如果运营推广能做好&#xff0c;那么在行业内分一杯羹并不难。但问题是&#xff0c;在运营推广上&#xff0c;很难做海外电商。 这年头&#xff0c;相信大家都知道海外电商出问题了。很多人的账号都被亚…

动态链接库dll详解

动态链接库概述 DLL就是整个Windows操作系统的基础。动态链接库不能直接运行&#xff0c;也不能接收消息他们是一些独立的文件。 Windows API中的所有函数都包含在DLL中。 其中有三个最重要的DLL kernel32.dll&#xff0c;它包含用于管理内存、线程和进程的各个函数&#xff1b…

[附源码]SSM计算机毕业设计学生实习管理系统JAVA

项目运行 环境配置&#xff1a; Jdk1.8 Tomcat7.0 Mysql HBuilderX&#xff08;Webstorm也行&#xff09; Eclispe&#xff08;IntelliJ IDEA,Eclispe,MyEclispe,Sts都支持&#xff09;。 项目技术&#xff1a; SSM mybatis Maven Vue 等等组成&#xff0c;B/S模式 M…

超详细的商业智能BI知识分享,值得收藏

在数据为王的时代&#xff0c;获取数据和处理数据&#xff0c;成为企业必备的生存手段。哪个企业能在数据信息中汲取到更多的有效价值&#xff0c;就能抢占先机&#xff0c;获得市场的主动权。数据分析将不再是专业技术人员或数据分析师的专利&#xff0c;商业智能 BI 可以帮助…

华为机试 - 最大股票收益

目录 题目描述 输入描述 输出描述 用例 题目解析 算法源码 题目描述 假设知道某段连续时间内股票价格&#xff0c;计算通过买入卖出可获得的最大收益。 输入一个大小为 n 的数 price(p1,p2,p3,p4…….pn),pi 是第i天的股票价格。 pi 的格式为股票价格(非负整型)加上货…

基于风控特征相关度,挖掘贷中等场景中的存量客户价值|来看看相关实操

在数据建模流程中&#xff0c;都会涉及一个样本特征的相关性的分析&#xff0c;这个是建模流程中重要一环。通过量化特征字段之间的相关程度&#xff0c;可以将其作为一个重要信息维度&#xff0c;便于我们对模型训练的特征变量池进行有效筛选&#xff0c;不仅有简化模型且保证…