web作业网页设计--静态网页(仿写喜马拉雅主页)

一、网站介绍 

📘适合人群:适合刚入门想自己研究的小伙伴;

📓网站素材:收集好看的图片素材;

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

📙网页编辑:本作品代码简单,可使用任意HTML编辑软件(如:​​Dreamweaver、HBuilder、Vscode  等任意html编辑软件进行运行及修改编辑等操作);

 二、🔗网站效果

三、 🌎代码展示

🏅HTML部分代码展示
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>喜马拉雅,有声小说</title>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/font.css">
</head>

<body>
    <div class="xmly">
        <!-- 顶部开始 -->
        <header>
            <div class="head">
                <a href="#"><img class="logo" src="imgs/logo.png" alt="图消失啦" width="120px" height="47px"></a>
                <div class="head-left">
                    <a href="#"><span class="sp1">发现</span><span>我的</span><span>APP下载</span></a>
                </div>
                <div class="head-middle"><input class="search" type="text" placeholder="专辑/声音/用户"></div>
                <div class="head-right">
                    <a href="#" class="head-right-nav"><span><i class="iconfont icon-kafei"></i>上 传</span><span><i class="iconfont icon-guozhi"></i>创作中心</span><span><i class="iconfont icon-hanbao"></i>有声出版</span><span><i class="iconfont icon-huadian-penzai"></i>小雅音箱</span></a>
                    <a href="#" class="img1"><img src="imgs/head-left.png" alt=""></a>
                </div>
            </div>
        </header>
        <!-- 顶部结束 -->
        <!-- 右边固定栏开始 -->
        <div class="right-bg">
            <img src="imgs/ting.png" height="70px" alt="">
            <p>听书、听课、听段子 6亿用户的选择!</p>
            <button>下载客户端</button>
        </div>
        <!-- 右边固定栏结束 -->
        <!-- 内容部分开始 -->
        <div class="content">
            <!-- 轮播图部分开始 -->
            <div class="loop">
                <!-- 轮播图部分 -->
                <img src="imgs/lb.png" alt="">
            </div>
            <!-- 轮播图部分结束 -->
            <!-- 导航菜单开始 -->
            <div class="content-nav">
                <div class="nav1">
                    <a href="#"> <img src="imgs/菜单.png" width="20px" alt=""> 全部分类</a><span><a href="#">排行榜 </a> · <a href="#"> 看小说</a></span></div>

                <div class="nav2">
                    <h4>
                        <a href="#"> <img src="imgs/书.png" width="20px" alt=""> 有声书</a>
                    </h4>
                    <span><a href="">文 学</a>|<a href="#">言情</a>|<a href="#">商业</a></span>
                    <span><a href="#">悬 疑</a>|<a href="#">武侠</a>|<a href="#">历史小说</a></span>
                </div>
                <div class="nav3">
                    <h4>
                        <a href="#"><img src="imgs/音乐.png" width="22px" alt="">音乐</a>
                    </h4>
                    <span><a href="">相声</a>|<a href="#">评书</a>|<a href="#">小品</a></span>
                    <span><a href="#">流行</a>|<a href="#">民谣</a>|<a href="#">轻音乐</a></span>
                </div>
                <div class="nav4">
                    <h4>
                        <a href="#"><img src="imgs/教育-58.png" width="23px" alt="">教育</a>
                    </h4>
                    <span><a href="">英语</a>|<a href="#">历史</a>|<a href="#">人文</a></span>
                    <span><a href="#">听两会</a>|<a href="#">科技</a>|<a href="#">外文</a></span>
                </div>
                <div class="nav5">
                    <h4>
                        <a href="#"><img src="imgs/儿童.png" width="23px" alt="">儿童</a>
                    </h4>
                    <span><a href="">学前英语</a>|<a href="#">科普 </a>|<a href="#"> 绘本</a></span>
                    <span><a href="#">少儿音乐</a>|<a href="#">文学</a>|<a href="#">卡通</a></span>
                </div>
                <div class="nav6">
                    <h4>
                        <a href="#"><img src="imgs/知识.png" width="23px" alt="">知识</a>
                    </h4>
                    <span><a href="">财经</a>|<a href="#">IT科技</a>|<a href="#">新媒体</a></span>
                    <span><a href="#">创业</a></span>
                </div>

            </div>
            <!-- 导航菜单结束 -->
        </div>
    </div>
</body>

</html>
🧩CSS部分代码展示
a {
    text-decoration: none;
    color: gray;
}

header {
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0px 3px 2px rgba(128, 128, 128, 0.205);
}

.head {
    width: 1080px;
    margin: 0 auto;
    display: flex;
}

.logo {
    padding-top: 10px;
    flex: 1 0 auto;
}

.head-left {
    flex: 2 0 auto;
    height: 60px;
}

.head-left a {
    line-height: 35px;
    padding-top: 14px;
    display: inline-block;
}

.head-left a>.sp1 {
    color: rgb(0, 0, 0);
    font-size: 18px;
}

.head-left span {
    padding-left: 20px;
    font-size: 16px;
}

.head-middle {
    height: 60px;
    line-height: 60px;
    flex: 3 0 auto;
    text-align: center;
}

.search {
    width: 270px;
    padding-left: 10px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid rgba(205, 92, 92, 0.376);
}

.head-right {
    flex: 3 0 auto;
    height: 60px;
    position: relative;
}

.head-right span {
    padding-right: 15px;
    font-size: 14px;
    padding-top: 30px;
    position: relative;
}

.head-right>.head-right-nav {
    display: inline-block;
    line-height: 60px;
}

.head-right>.head-right-nav i {
    font-size: 22px;
    position: absolute;
    top: -15px;
    left: 11px;
}

四、结语 

1.看到这里了就 [点赞+好评+收藏] 三连 支持下吧,你的「点赞,好评,收藏」是我创作的动力。  

  • 12
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
静态网页设计是指网页内容固定不变,不需要与服务器进行交互的网页设计方式。杨柳青木版年画是中国民间年画的一种,下面是一个简单的静态网页设计示例,展示了杨柳青木版年画的相关信息: ```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>杨柳青木版年画</title> <style> body { margin: 0; padding: 0; background-color: #f5f5f5; font-family: Arial, sans-serif; } header { background-color: #333; color: #fff; padding: 20px; text-align: center; } h1 { margin: 0; font-size: 36px; } nav { background-color: #eee; padding: 10px; text-align: center; } nav a { display: inline-block; padding: 10px; color: #333; text-decoration: none; font-size: 18px; font-weight: bold; margin-right: 10px; } nav a:hover { background-color: #333; color: #fff; } section { padding: 20px; margin: 20px; background-color: #fff; box-shadow: 0 0 10px rgba(0,0,0,0.2); } section h2 { font-size: 24px; margin-top: 0; } section p { line-height: 1.5; font-size: 16px; } footer { background-color: #333; color: #fff; padding: 20px; text-align: center; } </style> </head> <body> <header> <h1>杨柳青木版年画</h1> </header> <nav> <a href="#introduction">介绍</a> <a href="#history">历史</a> <a href="#production">制作</a> <a href="#gallery">画廊</a> </nav> <section id="introduction"> <h2>介绍</h2> <p>杨柳青木版年画是中国民间年画的一种,起源于天津市宝坻区杨柳青镇。杨柳青木版年画以其独特的艺术风格和精湛的制作工艺,享誉海内外。</p> </section> <section id="history"> <h2>历史</h2> <p>杨柳青木版年画的历史可以追溯到清朝末年。当时,杨柳青镇的年画制作已经相当发达,但是由于年画的制作材料多为纸张,保存时间较短。为了解决这个问题,当地的年画制作者开始使用木板代替纸张,从而诞生了杨柳青木版年画。</p> </section> <section id="production"> <h2>制作</h2> <p>杨柳青木版年画的制作需要经过多个步骤,包括设计、雕刻、印刷等。其中,雕刻是最为关键的一步,需要经过多年的学习和实践才能掌握。</p> </section> <section id="gallery"> <h2>画廊</h2> <p>以下是一些杨柳青木版年画的图片:</p> <img src="https://img-blog.csdn.net/20180322154203109?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY2hlbnhpX2Jsb2c=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/q/80" alt="杨柳青木版年画"> </section> <footer> <p>本网页由XXX制作</p> </footer> </body> </html> ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值